Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public static Task InitAsync()
        {
            var provider = StorageProviderFactory.FromString(ConfigurationManager.AppSettings[Constants.Provider]);

            return(provider.InitAsync());
        }