HostingGrainExtensions.AddGrainExtension 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddGrainExtension<TExtensionInterface,TExtension>(ISiloBuilder) |
註冊指定介面的細微性延伸實作。 |
AddGrainExtension<TExtensionInterface,TExtension>(ISiloHostBuilder) |
註冊指定介面的細微性延伸實作。 |
AddGrainExtension<TExtensionInterface,TExtension>(ISiloBuilder)
註冊指定介面的細微性延伸實作。
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)
註冊指定介面的細微性延伸實作。
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