Condividi tramite


DirectorySiloBuilderExtensions.AddGrainDirectory Metodo

Definizione

Overload

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

Aggiungere un'implementazione del provider di directory granulare al silo. Se il tipo di provider implementa ILifecycleParticipant<TLifecycleObservable> verrà automaticamente partecipato al ciclo di vita del silo.

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

Aggiungere un'implementazione del provider di directory granulare al silo. Se il tipo di provider implementa ILifecycleParticipant<TLifecycleObservable> verrà automaticamente partecipato al ciclo di vita del silo.

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

Aggiungere un'implementazione del provider di directory granulare al silo. Se il tipo di provider implementa ILifecycleParticipant<TLifecycleObservable> verrà automaticamente partecipato al ciclo di vita del silo.

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

Parametri di tipo

T

Tipo di implementazione concreta del provider di directory granulare.

Parametri

collection
IServiceCollection

Raccolta di servizi.

name
String

Nome della directory granulare da aggiungere.

implementationFactory
Func<IServiceProvider,String,T>

Factory per compilare il provider di directory granulare.

Restituisce

Raccolta di servizi.

Si applica a

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

Aggiungere un'implementazione del provider di directory granulare al silo. Se il tipo di provider implementa ILifecycleParticipant<TLifecycleObservable> verrà automaticamente partecipato al ciclo di vita del silo.

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

Parametri di tipo

T

Tipo di implementazione concreta del provider di directory granulare.

Parametri

builder
ISiloBuilder

Generatore silo.

name
String

Nome della directory granulare da aggiungere.

implementationFactory
Func<IServiceProvider,String,T>

Factory per compilare il provider di directory granulare.

Restituisce

Generatore silo.

Si applica a