public StoreProcessor(int index) { this.index = index; logger = new ElibLogging("trace"); _service = GetService(); this.DateTime = DateTime.Now; Items = new List<CurrencyInfo>(); MAX_LENGTH = Math.Max(CurrencyStoreSection.Instance.Task.PoolSize, 10); storaged = CurrencyStoreSection.Instance.Task.Storage.Enable; }
public StoreProcessor(int index) { this.index = index; logger = new ElibLogging("trace"); _service = GetService(); this.DateTime = DateTime.Now; Items = new List <CurrencyInfo>(); MAX_LENGTH = Math.Max(CurrencyStoreSection.Instance.Task.PoolSize, 10); storaged = CurrencyStoreSection.Instance.Task.Storage.Enable; }
public RemoteAgent() { var storaged = CurrencyStoreSection.Instance.Task.Storage.Enable; if (!storaged) service = new EmptyStorage(); var type = CurrencyStoreSection.Instance.Task.Storage.Type; if (type == "file") service = new FileStorage(); else if (type == "empty") service = new EmptyStorage(); else service = ServiceFactory.GetService<ICurrencyService>(); }
public RemoteAgent() { var storaged = CurrencyStoreSection.Instance.Task.Storage.Enable; if (!storaged) { service = new EmptyStorage(); } var type = CurrencyStoreSection.Instance.Task.Storage.Type; if (type == "file") { service = new FileStorage(); } else if (type == "empty") { service = new EmptyStorage(); } else { service = ServiceFactory.GetService <ICurrencyService>(); } }