共用方式為


PlacementStrategyExtensions.AddPlacementDirector 方法

定義

多載

AddPlacementDirector<TStrategy,TDirector>(IServiceCollection)

TDirector 設定為放置策略 TStrategy的放置主管。

AddPlacementDirector<TStrategy,TDirector>(ISiloBuilder)

TDirector 設定為放置策略 TStrategy的放置主管。

AddPlacementDirector<TStrategy,TDirector>(ISiloHostBuilder)

TDirector 設定為放置策略 TStrategy的放置主管。

AddPlacementDirector<TStrategy,TDirector>(IServiceCollection, ServiceLifetime)

TDirector 設定為放置策略 TStrategy的放置主管。

AddPlacementDirector<TStrategy>(IServiceCollection, Func<IServiceProvider,IPlacementDirector>)

新增放置 Director。

AddPlacementDirector<TStrategy>(ISiloBuilder, Func<IServiceProvider,IPlacementDirector>)

新增放置 Director。

AddPlacementDirector<TStrategy>(ISiloHostBuilder, Func<IServiceProvider,IPlacementDirector>)

新增放置 Director。

AddPlacementDirector<TStrategy>(IServiceCollection, Func<IServiceProvider,IPlacementDirector>, ServiceLifetime)

新增放置 Director。

AddPlacementDirector<TStrategy,TDirector>(IServiceCollection)

TDirector 設定為放置策略 TStrategy的放置主管。

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)

類型參數

TStrategy

放置策略。

TDirector

放置 Director。

參數

services
IServiceCollection

服務集合。

適用於

AddPlacementDirector<TStrategy,TDirector>(ISiloBuilder)

來源:
PlacementStrategyExtensions.cs

TDirector 設定為放置策略 TStrategy的放置主管。

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

類型參數

TStrategy

放置策略。

TDirector

放置 Director。

參數

builder
ISiloBuilder

產生器。

傳回

產生器。

適用於

AddPlacementDirector<TStrategy,TDirector>(ISiloHostBuilder)

來源:
PlacementStrategyExtensions.cs

TDirector 設定為放置策略 TStrategy的放置主管。

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

類型參數

TStrategy

放置策略。

TDirector

放置 Director。

參數

builder
ISiloHostBuilder

產生器。

傳回

產生器。

適用於

AddPlacementDirector<TStrategy,TDirector>(IServiceCollection, ServiceLifetime)

TDirector 設定為放置策略 TStrategy的放置主管。

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)

類型參數

TStrategy

放置策略。

TDirector

放置 Director。

參數

services
IServiceCollection

服務集合。

strategyLifetime
ServiceLifetime

放置策略的存留期。

適用於

AddPlacementDirector<TStrategy>(IServiceCollection, Func<IServiceProvider,IPlacementDirector>)

新增放置 Director。

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))

類型參數

TStrategy

放置策略。

參數

services
IServiceCollection

服務集合。

createDirector
Func<IServiceProvider,IPlacementDirector>

用來建立放置 Director 的委派。

適用於

AddPlacementDirector<TStrategy>(ISiloBuilder, Func<IServiceProvider,IPlacementDirector>)

來源:
PlacementStrategyExtensions.cs

新增放置 Director。

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

類型參數

TStrategy

放置策略。

參數

builder
ISiloBuilder

產生器。

createDirector
Func<IServiceProvider,IPlacementDirector>

用來建立放置 Director 的委派。

傳回

產生器。

適用於

AddPlacementDirector<TStrategy>(ISiloHostBuilder, Func<IServiceProvider,IPlacementDirector>)

來源:
PlacementStrategyExtensions.cs

新增放置 Director。

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

類型參數

TStrategy

放置策略。

參數

builder
ISiloHostBuilder

產生器。

createDirector
Func<IServiceProvider,IPlacementDirector>

用來建立放置 Director 的委派。

傳回

產生器。

適用於

AddPlacementDirector<TStrategy>(IServiceCollection, Func<IServiceProvider,IPlacementDirector>, ServiceLifetime)

新增放置 Director。

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)

類型參數

TStrategy

放置策略。

參數

services
IServiceCollection

服務集合。

createDirector
Func<IServiceProvider,IPlacementDirector>

用來建立放置 Director 的委派。

strategyLifetime
ServiceLifetime

放置策略的存留期。

適用於