Freigeben über


DirectorySiloBuilderExtensions.AddGrainDirectory Methode

Definition

Überlädt

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

Fügen Sie dem Silo eine Implementierung des Grain-Verzeichnisanbieters hinzu. Wenn der Anbietertyp implementiert ILifecycleParticipant<TLifecycleObservable> , wird er automatisch am Silolebenszyklus beteiligt.

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

Fügen Sie dem Silo eine Implementierung des Grain-Verzeichnisanbieters hinzu. Wenn der Anbietertyp implementiert ILifecycleParticipant<TLifecycleObservable> , wird er automatisch am Silolebenszyklus beteiligt.

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

Fügen Sie dem Silo eine Implementierung des Grain-Verzeichnisanbieters hinzu. Wenn der Anbietertyp implementiert ILifecycleParticipant<TLifecycleObservable> , wird er automatisch am Silolebenszyklus beteiligt.

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

Typparameter

T

Der konkrete Implementierungstyp des Grain-Verzeichnisanbieters.

Parameter

collection
IServiceCollection

Die Dienstauflistung.

name
String

Der Name des hinzuzufügenden Grain-Verzeichnisses.

implementationFactory
Func<IServiceProvider,String,T>

Factory zum Erstellen des Grain-Verzeichnisanbieters.

Gibt zurück

Die Dienstauflistung.

Gilt für:

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

Fügen Sie dem Silo eine Implementierung des Grain-Verzeichnisanbieters hinzu. Wenn der Anbietertyp implementiert ILifecycleParticipant<TLifecycleObservable> , wird er automatisch am Silolebenszyklus beteiligt.

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

Typparameter

T

Der konkrete Implementierungstyp des Grain-Verzeichnisanbieters.

Parameter

builder
ISiloBuilder

Der Silo-Generator.

name
String

Der Name des hinzuzufügenden Grain-Verzeichnisses.

implementationFactory
Func<IServiceProvider,String,T>

Factory zum Erstellen des Grain-Verzeichnisanbieters.

Gibt zurück

Der Silo-Generator.

Gilt für: