Bewerken

Delen via


HostingGrainExtensions.AddGrainExtension Method

Definition

Overloads

AddGrainExtension<TExtensionInterface,TExtension>(ISiloBuilder)

Registers a grain extension implementation for the specified interface.

AddGrainExtension<TExtensionInterface,TExtension>(ISiloHostBuilder)

Registers a grain extension implementation for the specified interface.

AddGrainExtension<TExtensionInterface,TExtension>(ISiloBuilder)

Source:
HostingGrainExtensions.cs

Registers a grain extension implementation for the specified interface.

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

Type Parameters

TExtensionInterface

The IGrainExtension interface being registered.

TExtension

The implementation of TExtensionInterface.

Parameters

builder
ISiloBuilder

Returns

Applies to

AddGrainExtension<TExtensionInterface,TExtension>(ISiloHostBuilder)

Source:
HostingGrainExtensions.cs

Registers a grain extension implementation for the specified interface.

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

Type Parameters

TExtensionInterface

The IGrainExtension interface being registered.

TExtension

The implementation of TExtensionInterface.

Parameters

Returns

Applies to