PlacementStrategyExtensions.AddPlacementDirector Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AddPlacementDirector<TStrategy,TDirector>(IServiceCollection)
Configura un TDirector
oggetto come direttore di posizionamento per la strategia TStrategy
di posizionamento.
public static void AddPlacementDirector<TStrategy,TDirector> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TStrategy : Orleans.Runtime.PlacementStrategy, new() where TDirector : class, Orleans.Runtime.Placement.IPlacementDirector;
static member AddPlacementDirector : Microsoft.Extensions.DependencyInjection.IServiceCollection -> unit (requires 'Strategy :> Orleans.Runtime.PlacementStrategy and 'Strategy : (new : unit -> 'Strategy) and 'Director : null and 'Director :> Orleans.Runtime.Placement.IPlacementDirector)
<Extension()>
Public Sub AddPlacementDirector(Of TStrategy As {PlacementStrategyNew}, TDirector As {PlacementStrategyNew}) (services As IServiceCollection)
Parametri di tipo
- TStrategy
Strategia di posizionamento.
- TDirector
Direttore di posizionamento.
Parametri
- services
- IServiceCollection
Raccolta di servizi.
Si applica a
AddPlacementDirector<TStrategy,TDirector>(ISiloBuilder)
- Origine:
- PlacementStrategyExtensions.cs
Configura un TDirector
oggetto come direttore di posizionamento per la strategia TStrategy
di posizionamento.
public static Orleans.Hosting.ISiloBuilder AddPlacementDirector<TStrategy,TDirector> (this Orleans.Hosting.ISiloBuilder builder) where TStrategy : Orleans.Runtime.PlacementStrategy where TDirector : class, Orleans.Runtime.Placement.IPlacementDirector;
public static Orleans.Hosting.ISiloBuilder AddPlacementDirector<TStrategy,TDirector> (this Orleans.Hosting.ISiloBuilder builder) where TStrategy : Orleans.Runtime.PlacementStrategy, new() where TDirector : class, Orleans.Runtime.Placement.IPlacementDirector;
static member AddPlacementDirector : Orleans.Hosting.ISiloBuilder -> Orleans.Hosting.ISiloBuilder (requires 'Strategy :> Orleans.Runtime.PlacementStrategy and 'Director : null and 'Director :> Orleans.Runtime.Placement.IPlacementDirector)
static member AddPlacementDirector : Orleans.Hosting.ISiloBuilder -> Orleans.Hosting.ISiloBuilder (requires 'Strategy :> Orleans.Runtime.PlacementStrategy and 'Strategy : (new : unit -> 'Strategy) and 'Director : null and 'Director :> Orleans.Runtime.Placement.IPlacementDirector)
<Extension()>
Public Function AddPlacementDirector(Of TStrategy As PlacementStrategy, TDirector As PlacementStrategy) (builder As ISiloBuilder) As ISiloBuilder
<Extension()>
Public Function AddPlacementDirector(Of TStrategy As {PlacementStrategyNew}, TDirector As {PlacementStrategyNew}) (builder As ISiloBuilder) As ISiloBuilder
Parametri di tipo
- TStrategy
Strategia di posizionamento.
- TDirector
Direttore di posizionamento.
Parametri
- builder
- ISiloBuilder
Generatore.
Restituisce
Generatore.
Si applica a
AddPlacementDirector<TStrategy,TDirector>(ISiloHostBuilder)
- Origine:
- PlacementStrategyExtensions.cs
Configura un TDirector
oggetto come direttore di posizionamento per la strategia TStrategy
di posizionamento.
public static Orleans.Hosting.ISiloHostBuilder AddPlacementDirector<TStrategy,TDirector> (this Orleans.Hosting.ISiloHostBuilder builder) where TStrategy : Orleans.Runtime.PlacementStrategy where TDirector : class, Orleans.Runtime.Placement.IPlacementDirector;
static member AddPlacementDirector : Orleans.Hosting.ISiloHostBuilder -> Orleans.Hosting.ISiloHostBuilder (requires 'Strategy :> Orleans.Runtime.PlacementStrategy and 'Director : null and 'Director :> Orleans.Runtime.Placement.IPlacementDirector)
<Extension()>
Public Function AddPlacementDirector(Of TStrategy As PlacementStrategy, TDirector As PlacementStrategy) (builder As ISiloHostBuilder) As ISiloHostBuilder
Parametri di tipo
- TStrategy
Strategia di posizionamento.
- TDirector
Direttore di posizionamento.
Parametri
- builder
- ISiloHostBuilder
Generatore.
Restituisce
Generatore.
Si applica a
AddPlacementDirector<TStrategy,TDirector>(IServiceCollection, ServiceLifetime)
Configura un TDirector
oggetto come direttore di posizionamento per la strategia TStrategy
di posizionamento.
public static void AddPlacementDirector<TStrategy,TDirector> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.DependencyInjection.ServiceLifetime strategyLifetime) where TStrategy : Orleans.Runtime.PlacementStrategy, new() where TDirector : class, Orleans.Runtime.Placement.IPlacementDirector;
static member AddPlacementDirector : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> unit (requires 'Strategy :> Orleans.Runtime.PlacementStrategy and 'Strategy : (new : unit -> 'Strategy) and 'Director : null and 'Director :> Orleans.Runtime.Placement.IPlacementDirector)
<Extension()>
Public Sub AddPlacementDirector(Of TStrategy As {PlacementStrategyNew}, TDirector As {PlacementStrategyNew}) (services As IServiceCollection, strategyLifetime As ServiceLifetime)
Parametri di tipo
- TStrategy
Strategia di posizionamento.
- TDirector
Direttore di posizionamento.
Parametri
- services
- IServiceCollection
Raccolta di servizi.
- strategyLifetime
- ServiceLifetime
Durata della strategia di posizionamento.
Si applica a
AddPlacementDirector<TStrategy>(IServiceCollection, Func<IServiceProvider,IPlacementDirector>)
Aggiunge un direttore di posizionamento.
public static void AddPlacementDirector<TStrategy> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Func<IServiceProvider,Orleans.Runtime.Placement.IPlacementDirector> createDirector) where TStrategy : Orleans.Runtime.PlacementStrategy, new();
static member AddPlacementDirector : Microsoft.Extensions.DependencyInjection.IServiceCollection * Func<IServiceProvider, Orleans.Runtime.Placement.IPlacementDirector> -> unit (requires 'Strategy :> Orleans.Runtime.PlacementStrategy and 'Strategy : (new : unit -> 'Strategy))
<Extension()>
Public Sub AddPlacementDirector(Of TStrategy As {PlacementStrategyNew}) (services As IServiceCollection, createDirector As Func(Of IServiceProvider, IPlacementDirector))
Parametri di tipo
- TStrategy
Strategia di posizionamento.
Parametri
- services
- IServiceCollection
Raccolta di servizi.
- createDirector
- Func<IServiceProvider,IPlacementDirector>
Delegato usato per creare la directory di posizionamento.
Si applica a
AddPlacementDirector<TStrategy>(ISiloBuilder, Func<IServiceProvider,IPlacementDirector>)
- Origine:
- PlacementStrategyExtensions.cs
Aggiunge un direttore di posizionamento.
public static Orleans.Hosting.ISiloBuilder AddPlacementDirector<TStrategy> (this Orleans.Hosting.ISiloBuilder builder, Func<IServiceProvider,Orleans.Runtime.Placement.IPlacementDirector> createDirector) where TStrategy : Orleans.Runtime.PlacementStrategy;
public static Orleans.Hosting.ISiloBuilder AddPlacementDirector<TStrategy> (this Orleans.Hosting.ISiloBuilder builder, Func<IServiceProvider,Orleans.Runtime.Placement.IPlacementDirector> createDirector) where TStrategy : Orleans.Runtime.PlacementStrategy, new();
static member AddPlacementDirector : Orleans.Hosting.ISiloBuilder * Func<IServiceProvider, Orleans.Runtime.Placement.IPlacementDirector> -> Orleans.Hosting.ISiloBuilder (requires 'Strategy :> Orleans.Runtime.PlacementStrategy)
static member AddPlacementDirector : Orleans.Hosting.ISiloBuilder * Func<IServiceProvider, Orleans.Runtime.Placement.IPlacementDirector> -> Orleans.Hosting.ISiloBuilder (requires 'Strategy :> Orleans.Runtime.PlacementStrategy and 'Strategy : (new : unit -> 'Strategy))
<Extension()>
Public Function AddPlacementDirector(Of TStrategy As PlacementStrategy) (builder As ISiloBuilder, createDirector As Func(Of IServiceProvider, IPlacementDirector)) As ISiloBuilder
<Extension()>
Public Function AddPlacementDirector(Of TStrategy As {PlacementStrategyNew}) (builder As ISiloBuilder, createDirector As Func(Of IServiceProvider, IPlacementDirector)) As ISiloBuilder
Parametri di tipo
- TStrategy
Strategia di posizionamento.
Parametri
- builder
- ISiloBuilder
Generatore.
- createDirector
- Func<IServiceProvider,IPlacementDirector>
Delegato usato per creare la directory di posizionamento.
Restituisce
Generatore.
Si applica a
AddPlacementDirector<TStrategy>(ISiloHostBuilder, Func<IServiceProvider,IPlacementDirector>)
- Origine:
- PlacementStrategyExtensions.cs
Aggiunge un direttore di posizionamento.
public static Orleans.Hosting.ISiloHostBuilder AddPlacementDirector<TStrategy> (this Orleans.Hosting.ISiloHostBuilder builder, Func<IServiceProvider,Orleans.Runtime.Placement.IPlacementDirector> createDirector) where TStrategy : Orleans.Runtime.PlacementStrategy;
static member AddPlacementDirector : Orleans.Hosting.ISiloHostBuilder * Func<IServiceProvider, Orleans.Runtime.Placement.IPlacementDirector> -> Orleans.Hosting.ISiloHostBuilder (requires 'Strategy :> Orleans.Runtime.PlacementStrategy)
<Extension()>
Public Function AddPlacementDirector(Of TStrategy As PlacementStrategy) (builder As ISiloHostBuilder, createDirector As Func(Of IServiceProvider, IPlacementDirector)) As ISiloHostBuilder
Parametri di tipo
- TStrategy
Strategia di posizionamento.
Parametri
- builder
- ISiloHostBuilder
Generatore.
- createDirector
- Func<IServiceProvider,IPlacementDirector>
Delegato usato per creare la directory di posizionamento.
Restituisce
Generatore.
Si applica a
AddPlacementDirector<TStrategy>(IServiceCollection, Func<IServiceProvider,IPlacementDirector>, ServiceLifetime)
Aggiunge un direttore di posizionamento.
public static void AddPlacementDirector<TStrategy> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Func<IServiceProvider,Orleans.Runtime.Placement.IPlacementDirector> createDirector, Microsoft.Extensions.DependencyInjection.ServiceLifetime strategyLifetime) where TStrategy : Orleans.Runtime.PlacementStrategy, new();
static member AddPlacementDirector : Microsoft.Extensions.DependencyInjection.IServiceCollection * Func<IServiceProvider, Orleans.Runtime.Placement.IPlacementDirector> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> unit (requires 'Strategy :> Orleans.Runtime.PlacementStrategy and 'Strategy : (new : unit -> 'Strategy))
<Extension()>
Public Sub AddPlacementDirector(Of TStrategy As {PlacementStrategyNew}) (services As IServiceCollection, createDirector As Func(Of IServiceProvider, IPlacementDirector), strategyLifetime As ServiceLifetime)
Parametri di tipo
- TStrategy
Strategia di posizionamento.
Parametri
- services
- IServiceCollection
Raccolta di servizi.
- createDirector
- Func<IServiceProvider,IPlacementDirector>
Delegato usato per creare la directory di posizionamento.
- strategyLifetime
- ServiceLifetime
Durata della strategia di posizionamento.