protected async Task <IAgentStorage <TAgent> > GetStorage()
 {
     if (Storage == null)
     {
         Storage = await agentStorageFactory.Get();
     }
     return(Storage);
 }
Example #2
0
        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);
        }