GrainServicesSiloBuilderExtensions.AddGrainService 方法

定义

重载

AddGrainService(IServiceCollection, Type)

注册要从 silo 启动的应用程序粒度服务。

AddGrainService<T>(IServiceCollection)

注册要从 silo 启动的应用程序粒度服务。

AddGrainService<T>(ISiloBuilder)

注册要从 silo 启动的应用程序粒度服务。

AddGrainService<T>(ISiloHostBuilder)

注册要从 silo 启动的应用程序粒度服务。

AddGrainService(IServiceCollection, Type)

Source:
GrainServicesSiloBuilderExtensions.cs

注册要从 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

参数

services
IServiceCollection

服务集合。

grainServiceType
Type

grain 服务实现类型。

返回

服务集合。

适用于

AddGrainService<T>(IServiceCollection)

Source:
GrainServicesSiloBuilderExtensions.cs

注册要从 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

类型参数

T

grain 服务实现类型。

参数

services
IServiceCollection

服务集合。

返回

服务集合。

适用于

AddGrainService<T>(ISiloBuilder)

Source:
GrainServicesSiloBuilderExtensions.cs

注册要从 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

类型参数

T

grain 服务实现类型。

参数

builder
ISiloBuilder

生成器。

返回

silo 生成器。

适用于

AddGrainService<T>(ISiloHostBuilder)

Source:
GrainServicesSiloBuilderExtensions.cs

注册要从 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

类型参数

T

参数

返回

适用于