GrainServicesSiloBuilderExtensions.AddGrainService 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddGrainService(IServiceCollection, Type) |
註冊要從定址接收器啟動的應用程式粒紋服務。 |
AddGrainService<T>(IServiceCollection) |
註冊要從定址接收器啟動的應用程式粒紋服務。 |
AddGrainService<T>(ISiloBuilder) |
註冊要從定址接收器啟動的應用程式粒紋服務。 |
AddGrainService<T>(ISiloHostBuilder) |
註冊要從定址接收器啟動的應用程式粒紋服務。 |
AddGrainService(IServiceCollection, Type)
註冊要從定址接收器啟動的應用程式粒紋服務。
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
粒紋服務實作類型。
傳回
服務集合。
適用於
AddGrainService<T>(IServiceCollection)
註冊要從定址接收器啟動的應用程式粒紋服務。
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
粒紋服務實作類型。
參數
- services
- IServiceCollection
服務集合。
傳回
服務集合。
適用於
AddGrainService<T>(ISiloBuilder)
註冊要從定址接收器啟動的應用程式粒紋服務。
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
粒紋服務實作類型。
參數
- builder
- ISiloBuilder
產生器。
傳回
定址接收器產生器。
適用於
AddGrainService<T>(ISiloHostBuilder)
註冊要從定址接收器啟動的應用程式粒紋服務。
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
參數
- builder
- ISiloHostBuilder