示例#1
0
 public GetFileMd5HashAsyncDelegate(
     IStorageController <string> storageController,
     IGetHashAsyncDelegate <string> getStringHashAsyncDelegate)
 {
     this.storageController          = storageController;
     this.getStringHashAsyncDelegate = getStringHashAsyncDelegate;
 }
 public GetStringMd5HashAsyncDelegate(
     IConvertDelegate <string, byte[]> stringToBytesConversionController,
     IGetHashAsyncDelegate <byte[]> getBytesHashAsyncDelegate)
 {
     this.stringToBytesConversionController = stringToBytesConversionController;
     this.getBytesHashAsyncDelegate         = getBytesHashAsyncDelegate;
 }
示例#3
0
 public DataFileValidateDelegate(
     IGetHashAsyncDelegate <string> getFileMd5HashAsyncDelegate,
     IStatusController statusController)
 {
     this.getFileMd5HashAsyncDelegate = getFileMd5HashAsyncDelegate;
     this.statusController            = statusController;
 }
 public SerializedStorageController(
     IStoredHashController storedHashController,
     IStorageController <string> storageController,
     IGetHashAsyncDelegate <string> getStringHashAsyncDelegate,
     ISerializationController <string> serializarionController,
     IStatusController statusController)
 {
     this.storedHashController       = storedHashController;
     this.storageController          = storageController;
     this.getStringHashAsyncDelegate = getStringHashAsyncDelegate;
     this.serializarionController    = serializarionController;
     this.statusController           = statusController;
 }
        public FileValidationController(
            IConfirmDelegate <string> confirmValidationExpectedDelegate,
            IFileController fileController,
            IStreamController streamController,
            IGetHashAsyncDelegate <byte[]> getBytesHashAsyncDelegate,
            IValidationResultController validationResultController,
            IStatusController statusController)
        {
            this.confirmValidationExpectedDelegate = confirmValidationExpectedDelegate;
            this.fileController             = fileController;
            this.streamController           = streamController;
            this.getBytesHashAsyncDelegate  = getBytesHashAsyncDelegate;
            this.validationResultController = validationResultController;
            this.statusController           = statusController;

            validationXml = new XmlDocument {
                PreserveWhitespace = false
            };
        }
        public GetPageResultsAsyncDelegate(
            Entity context,
            IGetUpdateUriDelegate <Entity> getUpdateUriDelegate,
            IGetQueryParametersDelegate <Entity> getQueryParametersDelegate,
            IRequestPageAsyncDelegate requestPageAsyncDelegate,
            IGetHashAsyncDelegate <string> getStringHashDelegate,
            IStoredHashController storedHashController,
            ISerializationController <string> serializationController,
            IStatusController statusController)
        {
            this.context = context;
            this.getUpdateUriDelegate       = getUpdateUriDelegate;
            this.getQueryParametersDelegate = getQueryParametersDelegate;

            this.requestPageAsyncDelegate = requestPageAsyncDelegate;
            this.getStringHashDelegate    = getStringHashDelegate;
            this.storedHashController     = storedHashController;
            this.serializationController  = serializationController;

            this.statusController = statusController;

            requestUri        = getUpdateUriDelegate.GetUpdateUri(context);
            requestParameters = getQueryParametersDelegate.GetQueryParameters(context);
        }