예제 #1
0
        public static async Task <IRepository> CreateAsync()
        {
            var provider = StorageProviderFactory.FromString(ConfigurationManager.AppSettings[Constants.Provider].ToLowerInvariant());
            var repo     = await provider.CreateRepositoryAsync().ConfigureAwait(false);

            return(repo);
        }
예제 #2
0
        public static Task InitAsync()
        {
            var provider = StorageProviderFactory.FromString(ConfigurationManager.AppSettings[Constants.Provider]);

            return(provider.InitAsync());
        }