public IStorageConfigure CreateConfigure(IStorage storage, string path)
        {
            string configureData        = storage.GetString(path);
            StorageConfigureModel model = JsonConvert.DeserializeObject <StorageConfigureModel>(configureData);

            if (this.storageTypes.ContainsKey(model.StorageType))
            {
                return(Activator.CreateInstance(this.storageTypes[model.StorageType], model) as IStorageConfigure);
            }
            return(null);
        }
Beispiel #2
0
 public LocalFileSystemConfigure(StorageConfigureModel storageConfigureModel)
 {
     this.Prefix = storageConfigureModel.Prefix;
 }