KeyedService<TKey,TService> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
KeyedService<TKey,TService>(TKey, Func<IServiceProvider,TKey,TService>)
初始化 KeyedService<TKey,TService> 类的新实例。
public KeyedService (TKey key, Func<IServiceProvider,TKey,TService> factory);
new Orleans.Runtime.KeyedService<'Key, 'Service (requires 'Service : null)> : 'Key * Func<IServiceProvider, 'Key, 'Service (requires 'Service : null)> -> Orleans.Runtime.KeyedService<'Key, 'Service (requires 'Service : null)>
Public Sub New (key As TKey, factory As Func(Of IServiceProvider, TKey, TService))
参数
- key
- TKey
键。
- factory
- Func<IServiceProvider,TKey,TService>
工厂。
适用于
KeyedService<TKey,TService>(TKey, IServiceProvider, Func<IServiceProvider,TKey,TService>)
- Source:
- KeyedService.cs
public KeyedService (TKey key, IServiceProvider services, Func<IServiceProvider,TKey,TService> factory);
new Orleans.Runtime.KeyedService<'Key, 'Service (requires 'Service : null)> : 'Key * IServiceProvider * Func<IServiceProvider, 'Key, 'Service (requires 'Service : null)> -> Orleans.Runtime.KeyedService<'Key, 'Service (requires 'Service : null)>
Public Sub New (key As TKey, services As IServiceProvider, factory As Func(Of IServiceProvider, TKey, TService))
参数
- key
- TKey
- services
- IServiceProvider
- factory
- Func<IServiceProvider,TKey,TService>