DirectorySiloBuilderExtensions.AddGrainDirectory Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddGrainDirectory<T>(IServiceCollection, String, Func<IServiceProvider,String,T>) |
Agregue una implementación del proveedor de directorios específico al silo. Si el tipo de proveedor implementa ILifecycleParticipant<TLifecycleObservable> , participará automáticamente en el ciclo de vida del silo. |
AddGrainDirectory<T>(ISiloBuilder, String, Func<IServiceProvider,String,T>) |
Agregue una implementación del proveedor de directorios específico al silo. Si el tipo de proveedor implementa ILifecycleParticipant<TLifecycleObservable> , participará automáticamente en el ciclo de vida del silo. |
AddGrainDirectory<T>(IServiceCollection, String, Func<IServiceProvider,String,T>)
Agregue una implementación del proveedor de directorios específico al silo. Si el tipo de proveedor implementa ILifecycleParticipant<TLifecycleObservable> , participará automáticamente en el ciclo de vida 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
Parámetros de tipo
- T
Tipo de implementación concreto del proveedor de directorios de grano.
Parámetros
- collection
- IServiceCollection
Colección de servicios.
- name
- String
Nombre del directorio de grano que se va a agregar.
- implementationFactory
- Func<IServiceProvider,String,T>
Generador para compilar el proveedor de directorios específico.
Devoluciones
Colección de servicios.
Se aplica a
AddGrainDirectory<T>(ISiloBuilder, String, Func<IServiceProvider,String,T>)
Agregue una implementación del proveedor de directorios específico al silo. Si el tipo de proveedor implementa ILifecycleParticipant<TLifecycleObservable> , participará automáticamente en el ciclo de vida 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
Parámetros de tipo
- T
Tipo de implementación concreto del proveedor de directorios de grano.
Parámetros
- builder
- ISiloBuilder
El constructor del silo.
- name
- String
Nombre del directorio de grano que se va a agregar.
- implementationFactory
- Func<IServiceProvider,String,T>
Generador para compilar el proveedor de directorios específico.
Devoluciones
El constructor del silo.