Edit

Share via


GrainServicesSiloBuilderExtensions.AddGrainService Method

Definition

Overloads

AddGrainService(IServiceCollection, Type)

Registers an application grain service to be started with the silo.

AddGrainService<T>(IServiceCollection)

Registers an application grain service to be started with the silo.

AddGrainService<T>(ISiloBuilder)

Registers an application grain service to be started with the silo.

AddGrainService<T>(ISiloHostBuilder)

Registers an application grain service to be started with the silo.

AddGrainService(IServiceCollection, Type)

Source:
GrainServicesSiloBuilderExtensions.cs

Registers an application grain service to be started with the silo.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainService (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Type grainServiceType);
static member AddGrainService : Microsoft.Extensions.DependencyInjection.IServiceCollection * Type -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddGrainService (services As IServiceCollection, grainServiceType As Type) As IServiceCollection

Parameters

services
IServiceCollection

The service collection.

grainServiceType
Type

The grain service implementation type.

Returns

The service collection.

Applies to

AddGrainService<T>(IServiceCollection)

Source:
GrainServicesSiloBuilderExtensions.cs

Registers an application grain service to be started with the silo.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrainService<T> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddGrainService : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddGrainService(Of T) (services As IServiceCollection) As IServiceCollection

Type Parameters

T

The grain service implementation type.

Parameters

services
IServiceCollection

The service collection.

Returns

The service collection.

Applies to

AddGrainService<T>(ISiloBuilder)

Source:
GrainServicesSiloBuilderExtensions.cs

Registers an application grain service to be started with the silo.

public static Orleans.Hosting.ISiloBuilder AddGrainService<T> (this Orleans.Hosting.ISiloBuilder builder) where T : Orleans.Runtime.GrainService;
static member AddGrainService : Orleans.Hosting.ISiloBuilder -> Orleans.Hosting.ISiloBuilder (requires 'T :> Orleans.Runtime.GrainService)
<Extension()>
Public Function AddGrainService(Of T As GrainService) (builder As ISiloBuilder) As ISiloBuilder

Type Parameters

T

The grain service implementation type.

Parameters

builder
ISiloBuilder

The builder.

Returns

The silo builder.

Applies to

AddGrainService<T>(ISiloHostBuilder)

Source:
GrainServicesSiloBuilderExtensions.cs

Registers an application grain service to be started with the silo.

public static Orleans.Hosting.ISiloHostBuilder AddGrainService<T> (this Orleans.Hosting.ISiloHostBuilder builder) where T : Orleans.Runtime.GrainService;
static member AddGrainService : Orleans.Hosting.ISiloHostBuilder -> Orleans.Hosting.ISiloHostBuilder (requires 'T :> Orleans.Runtime.GrainService)
<Extension()>
Public Function AddGrainService(Of T As GrainService) (builder As ISiloHostBuilder) As ISiloHostBuilder

Type Parameters

T

Parameters

Returns

Applies to