protected async Task <IAgentStorage <TAgent> > GetStorage()
 {
     if (Storage == null)
     {
         Storage = await agentStorageFactory.Get();
     }
     return(Storage);
 }
Exemplo n.º 2
0
        public IAgentStorage <TAgent> Get()
        {
            IAgentStorage <TAgent> storage = null;
            string storageName             = this.platformSetting.AgentStorage;

            storage = func(storageName);
            return(storage as IAgentStorage <TAgent>);
        }
Exemplo n.º 3
0
        protected IAgentStorage <TAgent> GetAgentStorage()
        {
            if (Storage == null)
            {
                Storage = agentStorageFactory.Get();
            }

            return(Storage);
        }