MemoryGrainStorage 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
MemoryGrainStorage(String, MemoryGrainStorageOptions, ILogger<MemoryGrainStorage>, IGrainFactory)
預設建構函式。
public MemoryGrainStorage (string name, Orleans.Configuration.MemoryGrainStorageOptions options, Microsoft.Extensions.Logging.ILogger<Orleans.Storage.MemoryGrainStorage> logger, Orleans.IGrainFactory grainFactory);
new Orleans.Storage.MemoryGrainStorage : string * Orleans.Configuration.MemoryGrainStorageOptions * Microsoft.Extensions.Logging.ILogger<Orleans.Storage.MemoryGrainStorage> * Orleans.IGrainFactory -> Orleans.Storage.MemoryGrainStorage
Public Sub New (name As String, options As MemoryGrainStorageOptions, logger As ILogger(Of MemoryGrainStorage), grainFactory As IGrainFactory)
參數
- name
- String
名稱。
- options
- MemoryGrainStorageOptions
選項。
- logger
- ILogger<MemoryGrainStorage>
登入程式。
- grainFactory
- IGrainFactory
粒紋處理站。
適用於
MemoryGrainStorage(String, MemoryGrainStorageOptions, ILoggerFactory, IGrainFactory)
預設建構函式。
public MemoryGrainStorage (string name, Orleans.Configuration.MemoryGrainStorageOptions options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Orleans.IGrainFactory grainFactory);
new Orleans.Storage.MemoryGrainStorage : string * Orleans.Configuration.MemoryGrainStorageOptions * Microsoft.Extensions.Logging.ILoggerFactory * Orleans.IGrainFactory -> Orleans.Storage.MemoryGrainStorage
Public Sub New (name As String, options As MemoryGrainStorageOptions, loggerFactory As ILoggerFactory, grainFactory As IGrainFactory)
參數
- name
- String
- options
- MemoryGrainStorageOptions
- loggerFactory
- ILoggerFactory
- grainFactory
- IGrainFactory
適用於
MemoryGrainStorage(String, MemoryGrainStorageOptions, ILogger<MemoryGrainStorage>, IGrainFactory, IGrainStorageSerializer)
初始化 MemoryGrainStorage 類別的新執行個體。
public MemoryGrainStorage (string name, Orleans.Configuration.MemoryGrainStorageOptions options, Microsoft.Extensions.Logging.ILogger<Orleans.Storage.MemoryGrainStorage> logger, Orleans.IGrainFactory grainFactory, Orleans.Storage.IGrainStorageSerializer defaultGrainStorageSerializer);
new Orleans.Storage.MemoryGrainStorage : string * Orleans.Configuration.MemoryGrainStorageOptions * Microsoft.Extensions.Logging.ILogger<Orleans.Storage.MemoryGrainStorage> * Orleans.IGrainFactory * Orleans.Storage.IGrainStorageSerializer -> Orleans.Storage.MemoryGrainStorage
Public Sub New (name As String, options As MemoryGrainStorageOptions, logger As ILogger(Of MemoryGrainStorage), grainFactory As IGrainFactory, defaultGrainStorageSerializer As IGrainStorageSerializer)
參數
- name
- String
名稱。
- options
- MemoryGrainStorageOptions
選項。
- logger
- ILogger<MemoryGrainStorage>
登入程式。
- grainFactory
- IGrainFactory
粒紋處理站。
- defaultGrainStorageSerializer
- IGrainStorageSerializer
預設的粒紋記憶體串行化程式。