DirectorySiloBuilderExtensions.AddGrainDirectory Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddGrainDirectory<T>(IServiceCollection, String, Func<IServiceProvider,String,T>) |
Ajoutez une implémentation de fournisseur d’annuaires de grain au silo. Si le type de fournisseur implémente ILifecycleParticipant<TLifecycleObservable> , il participe automatiquement au cycle de vie du silo. |
AddGrainDirectory<T>(ISiloBuilder, String, Func<IServiceProvider,String,T>) |
Ajoutez une implémentation de fournisseur d’annuaires de grain au silo. Si le type de fournisseur implémente ILifecycleParticipant<TLifecycleObservable> , il participe automatiquement au cycle de vie du silo. |
AddGrainDirectory<T>(IServiceCollection, String, Func<IServiceProvider,String,T>)
Ajoutez une implémentation de fournisseur d’annuaires de grain au silo. Si le type de fournisseur implémente ILifecycleParticipant<TLifecycleObservable> , il participe automatiquement au cycle de vie du 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
Paramètres de type
- T
Type d’implémentation concrète du fournisseur d’annuaires de grains.
Paramètres
- collection
- IServiceCollection
Collection de services.
- name
- String
Nom du répertoire de grain à ajouter.
- implementationFactory
- Func<IServiceProvider,String,T>
Fabrique pour générer le fournisseur d’annuaires de grain.
Retours
Collection de services.
S’applique à
AddGrainDirectory<T>(ISiloBuilder, String, Func<IServiceProvider,String,T>)
Ajoutez une implémentation de fournisseur d’annuaires de grain au silo. Si le type de fournisseur implémente ILifecycleParticipant<TLifecycleObservable> , il participe automatiquement au cycle de vie du 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
Paramètres de type
- T
Type d’implémentation concrète du fournisseur d’annuaires de grains.
Paramètres
- builder
- ISiloBuilder
Générateur de silo.
- name
- String
Nom du répertoire de grain à ajouter.
- implementationFactory
- Func<IServiceProvider,String,T>
Fabrique pour générer le fournisseur d’annuaires de grain.
Retours
Générateur de silo.