Exemplo n.º 1
0
        public static IStorage NewStorage(StorageConfig config)
        {
#pragma warning disable CA2000,CA1062
            var storage = new Storage(config);
#pragma warning restore CA2000,CA1062
            var proxy = LogWrapper <IStorage> .Create(storage);

            return(proxy);
        }
Exemplo n.º 2
0
        public static IDao NewDao(string environmentId, ITokenClient tokenClient,
                                  HttpClient httpClient,
                                  string endPoint          = null,
                                  string endPointMask      = null,
                                  string countriesEndPoint = DefaultCountryEndPoint,
                                  int updateInterval       = DefaultUpdateInterval)
        {
#pragma warning disable CA2000,CA1062
            var dao = new HttpDao(environmentId, tokenClient, httpClient, endPoint, endPointMask, countriesEndPoint,
                                  updateInterval);
#pragma warning restore CA2000,CA1062
            var proxy = LogWrapper <IDao> .Create(dao, false);

            return(proxy);
        }