protected async Task <IAgentStorage <TAgent> > GetStorage() { if (Storage == null) { Storage = await agentStorageFactory.Get(); } return(Storage); }
public IAgentStorage <TAgent> Get() { IAgentStorage <TAgent> storage = null; string storageName = this.platformSetting.AgentStorage; storage = func(storageName); return(storage as IAgentStorage <TAgent>); }
protected IAgentStorage <TAgent> GetAgentStorage() { if (Storage == null) { Storage = agentStorageFactory.Get(); } return(Storage); }