Edytuj

Udostępnij za pośrednictwem


DirectorySiloBuilderExtensions.AddGrainDirectory Method

Definition

Overloads

AddGrainDirectory<T>(IServiceCollection, String, Func<IServiceProvider,String,T>)

Add a grain directory provider implementation to the silo. If the provider type implements ILifecycleParticipant<TLifecycleObservable> it will automatically participate to the silo lifecycle.

AddGrainDirectory<T>(ISiloBuilder, String, Func<IServiceProvider,String,T>)

Add a grain directory provider implementation to the silo. If the provider type implements ILifecycleParticipant<TLifecycleObservable> it will automatically participate to the silo lifecycle.

AddGrainDirectory<T>(IServiceCollection, String, Func<IServiceProvider,String,T>)

Add a grain directory provider implementation to the silo. If the provider type implements ILifecycleParticipant<TLifecycleObservable> it will automatically participate to the silo lifecycle.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainDirectory<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, string name, Func<IServiceProvider,string,T> implementationFactory) where T : Orleans.GrainDirectory.IGrainDirectory;
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainDirectory<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection collection, string name, Func<IServiceProvider,string,T> implementationFactory) where T : class, Orleans.GrainDirectory.IGrainDirectory;
static member AddGrainDirectory : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Func<IServiceProvider, string, 'T (requires 'T :> Orleans.GrainDirectory.IGrainDirectory)> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'T :> Orleans.GrainDirectory.IGrainDirectory)
static member AddGrainDirectory : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Func<IServiceProvider, string, 'T (requires 'T : null and 'T :> Orleans.GrainDirectory.IGrainDirectory)> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'T : null and 'T :> Orleans.GrainDirectory.IGrainDirectory)
<Extension()>
Public Function AddGrainDirectory(Of T As IGrainDirectory) (collection As IServiceCollection, name As String, implementationFactory As Func(Of IServiceProvider, String, T)) As IServiceCollection
<Extension()>
Public Function AddGrainDirectory(Of T As {Class, IGrainDirectory}) (collection As IServiceCollection, name As String, implementationFactory As Func(Of IServiceProvider, String, T)) As IServiceCollection

Type Parameters

T

The concrete implementation type of the grain directory provider.

Parameters

collection
IServiceCollection

The service collection.

name
String

The name of the grain directory to add.

implementationFactory
Func<IServiceProvider,String,T>

Factory to build the grain directory provider.

Returns

The service collection.

Applies to

AddGrainDirectory<T>(ISiloBuilder, String, Func<IServiceProvider,String,T>)

Add a grain directory provider implementation to the silo. If the provider type implements ILifecycleParticipant<TLifecycleObservable> it will automatically participate to the silo lifecycle.

public static Orleans.Hosting.ISiloBuilder AddGrainDirectory<T> (this Orleans.Hosting.ISiloBuilder builder, string name, Func<IServiceProvider,string,T> implementationFactory) where T : Orleans.GrainDirectory.IGrainDirectory;
public static Orleans.Hosting.ISiloBuilder AddGrainDirectory<T> (this Orleans.Hosting.ISiloBuilder builder, string name, Func<IServiceProvider,string,T> implementationFactory) where T : class, Orleans.GrainDirectory.IGrainDirectory;
static member AddGrainDirectory : Orleans.Hosting.ISiloBuilder * string * Func<IServiceProvider, string, 'T (requires 'T :> Orleans.GrainDirectory.IGrainDirectory)> -> Orleans.Hosting.ISiloBuilder (requires 'T :> Orleans.GrainDirectory.IGrainDirectory)
static member AddGrainDirectory : Orleans.Hosting.ISiloBuilder * string * Func<IServiceProvider, string, 'T (requires 'T : null and 'T :> Orleans.GrainDirectory.IGrainDirectory)> -> Orleans.Hosting.ISiloBuilder (requires 'T : null and 'T :> Orleans.GrainDirectory.IGrainDirectory)
<Extension()>
Public Function AddGrainDirectory(Of T As IGrainDirectory) (builder As ISiloBuilder, name As String, implementationFactory As Func(Of IServiceProvider, String, T)) As ISiloBuilder
<Extension()>
Public Function AddGrainDirectory(Of T As {Class, IGrainDirectory}) (builder As ISiloBuilder, name As String, implementationFactory As Func(Of IServiceProvider, String, T)) As ISiloBuilder

Type Parameters

T

The concrete implementation type of the grain directory provider.

Parameters

builder
ISiloBuilder

The silo builder.

name
String

The name of the grain directory to add.

implementationFactory
Func<IServiceProvider,String,T>

Factory to build the grain directory provider.

Returns

The silo builder.

Applies to