/// <summary> /// Mockable Constructor /// </summary> public DataStore(IImaging imaging, IContainer container, ITableStorage table, IStorageQueue queue, INaming naming, uint cacheControlDuration = 31536000) { if (null == imaging) { throw new ArgumentNullException("imaging"); } if (null == container) { throw new ArgumentNullException("container"); } if (null == table) { throw new ArgumentNullException("table"); } if (null == queue) { throw new ArgumentNullException("queue"); } if (null == naming) { throw new ArgumentNullException("naming"); } this.imaging = imaging; this.container = container; this.table = table; this.queue = queue; this.naming = naming; this.cacheControlDuration = cacheControlDuration < 0 ? 31536000 : cacheControlDuration; }
/// <summary> /// Mockable Constructor /// </summary> public Processor(IDataStore store, IReadOnlyDictionary <string, IImageVersion> versions, IImaging imaging, INaming naming) { if (null == store) { throw new ArgumentNullException("store"); } if (null == versions) { throw new ArgumentNullException("versions"); } if (null == imaging) { throw new ArgumentNullException("imaging"); } if (null == naming) { throw new ArgumentNullException("naming"); } this.store = store; this.versions = versions; this.imaging = imaging; this.naming = naming; }
/** * Set the delegate implementation. * * @param _delegate The delegate implementing platform specific functions. */ public void SetDelegate(IImaging _delegate) { this._delegate = _delegate; }
/** * Constructor with delegate. * * @param _delegate The delegate implementing platform specific functions. */ public ImagingBridge(IImaging _delegate) : base() { this._delegate = _delegate; }