AddGrainDirectory(ISiloBuilder, string, Func<IServiceProvider, string, T>)
staticextension
public static ISiloBuilder AddGrainDirectory<T>(this ISiloBuilder builder, string name, Func<IServiceProvider, string, T> implementationFactory) Add a grain directory provider implementation to the silo. If the provider type implements
Orleans.ILifecycleParticipant it will automatically participate to the silo lifecycle. Parameters
builderISiloBuilder- The silo builder.
namestring- The name of the grain directory to add.
implementationFactoryFunc<IServiceProvider, string, T>- Factory to build the grain directory provider.
Returns
The silo builder.
