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

添加放置控制器。

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

添加放置控制器。

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

添加放置控制器。

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

添加放置控制器。

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

放置控制器。

参数

services
IServiceCollection

服务集合。

适用于

AddPlacementDirector<TStrategy,TDirector>(ISiloBuilder)

Source:
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

放置控制器。

参数

builder
ISiloBuilder

生成器。

返回

生成器。

适用于

AddPlacementDirector<TStrategy,TDirector>(ISiloHostBuilder)

Source:
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

放置控制器。

参数

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

放置控制器。

参数

services
IServiceCollection

服务集合。

strategyLifetime
ServiceLifetime

放置策略的生存期。

适用于

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

添加放置控制器。

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>

用于创建放置控制器的委托。

适用于

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

Source:
PlacementStrategyExtensions.cs

添加放置控制器。

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>

用于创建放置控制器的委托。

返回

生成器。

适用于

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

Source:
PlacementStrategyExtensions.cs

添加放置控制器。

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>

用于创建放置控制器的委托。

返回

生成器。

适用于

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

添加放置控制器。

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>

用于创建放置控制器的委托。

strategyLifetime
ServiceLifetime

放置策略的生存期。

适用于