HostingGrainExtensions.AddGrainExtension 方法

定义

重载

AddGrainExtension<TExtensionInterface,TExtension>(ISiloBuilder)

为指定的接口注册粒度扩展实现。

AddGrainExtension<TExtensionInterface,TExtension>(ISiloHostBuilder)

为指定的接口注册粒度扩展实现。

AddGrainExtension<TExtensionInterface,TExtension>(ISiloBuilder)

Source:
HostingGrainExtensions.cs

为指定的接口注册粒度扩展实现。

public static Orleans.Hosting.ISiloBuilder AddGrainExtension<TExtensionInterface,TExtension> (this Orleans.Hosting.ISiloBuilder builder) where TExtensionInterface : class, Orleans.Runtime.IGrainExtension where TExtension : class, TExtensionInterface;
static member AddGrainExtension : Orleans.Hosting.ISiloBuilder -> Orleans.Hosting.ISiloBuilder (requires 'ExtensionInterface : null and 'ExtensionInterface :> Orleans.Runtime.IGrainExtension)
<Extension()>
Public Function AddGrainExtension(Of TExtensionInterface As {Class, IGrainExtension}, TExtension As {Class, IGrainExtension}) (builder As ISiloBuilder) As ISiloBuilder

类型参数

TExtensionInterface

正在注册的 IGrainExtension 接口。

TExtension

TExtensionInterface实现。

参数

builder
ISiloBuilder

返回

适用于

AddGrainExtension<TExtensionInterface,TExtension>(ISiloHostBuilder)

Source:
HostingGrainExtensions.cs

为指定的接口注册粒度扩展实现。

public static Orleans.Hosting.ISiloHostBuilder AddGrainExtension<TExtensionInterface,TExtension> (this Orleans.Hosting.ISiloHostBuilder builder) where TExtensionInterface : class, Orleans.Runtime.IGrainExtension where TExtension : class, TExtensionInterface;
static member AddGrainExtension : Orleans.Hosting.ISiloHostBuilder -> Orleans.Hosting.ISiloHostBuilder (requires 'ExtensionInterface : null and 'ExtensionInterface :> Orleans.Runtime.IGrainExtension)
<Extension()>
Public Function AddGrainExtension(Of TExtensionInterface As {Class, IGrainExtension}, TExtension As {Class, IGrainExtension}) (builder As ISiloHostBuilder) As ISiloHostBuilder

类型参数

TExtensionInterface

正在注册的 IGrainExtension 接口。

TExtension

TExtensionInterface实现。

参数

返回

适用于