public async Task InsertOrReplaceAsync(MarketMakerSettings marketMakerSettings) { var entity = new MarketMakerSettingsEntity(GetPartitionKey(), GetRowKey()); Mapper.Map(marketMakerSettings, entity); await _storage.InsertOrReplaceAsync(entity); }
public async Task <MarketMakerSettings> GetAsync() { MarketMakerSettingsEntity entity = await _storage.GetDataAsync(GetPartitionKey(), GetRowKey()); return(Mapper.Map <MarketMakerSettings>(entity)); }