HostingGrainExtensions.AddGrainExtension 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
实现。
参数
- builder
- ISiloHostBuilder