共用方式為


HostingGrainExtensions.AddGrainExtension 方法

定義

多載

AddGrainExtension<TExtensionInterface,TExtension>(ISiloBuilder)

註冊指定介面的細微性延伸實作。

AddGrainExtension<TExtensionInterface,TExtension>(ISiloHostBuilder)

註冊指定介面的細微性延伸實作。

AddGrainExtension<TExtensionInterface,TExtension>(ISiloBuilder)

來源:
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)

來源:
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

參數

傳回

適用於