/// <summary> /// Mockable Constructor /// </summary> public DataStore(string connectionString, IStorageElements elements, uint cacheControlDuration = 31536000) : this(new Imaging(), new Container(elements.Container, connectionString), new TableStorage(elements.Table, connectionString), new StorageQueue(elements.Queue, connectionString), new Naming(), cacheControlDuration) { }
/// <summary> /// Mockable Constructor /// </summary> public ImageApi(string connectionString, IPreprocessor preprocessor, IStorageElements elements) : this(preprocessor, new DataStore(connectionString, elements)) { }
/// <summary> /// Constructor /// </summary> /// <param name="connectionString">Table Storage Connection String</param> /// <param name="elements">Storage Elements</param> public QueryDataStore(string connectionString, IStorageElements elements) : this(new TableStorage(elements.Table, connectionString)) { }
/// <summary> /// Constructor /// </summary> /// <param name="connectionString">Table Storage Connection String</param> /// <param name="elements">Storage Elements</param> public ImageDataApi(string connectionString, IStorageElements elements) : this(new QueryDataStore(connectionString, elements)) { }