Ejemplo n.º 1
0
 public FormatValidationUriDelegate(
     IGetFilenameDelegate getValidationFilenameDelegate,
     IFormatDelegate <string, string> formatUriRemoveSessionDelegate)
 {
     this.getValidationFilenameDelegate  = getValidationFilenameDelegate;
     this.formatUriRemoveSessionDelegate = formatUriRemoveSessionDelegate;
 }
Ejemplo n.º 2
0
 public GetPathDelegate(
     IGetDirectoryDelegate getDirectoryDelegate,
     IGetFilenameDelegate getFilenameDelegate)
 {
     this.getDirectoryDelegate = getDirectoryDelegate;
     this.getFilenameDelegate  = getFilenameDelegate;
 }
 public FilePresentationController(
     IGetDirectoryDelegate getDirectoryDelegate,
     IGetFilenameDelegate getFilenameDelegate,
     IStreamController streamController)
 {
     this.getDirectoryDelegate = getDirectoryDelegate;
     this.getFilenameDelegate  = getFilenameDelegate;
     this.streamController     = streamController;
 }
Ejemplo n.º 4
0
 public static IStashController <Dictionary <long, Type> > CreateDataStashController <Type>(
     Entity entity,
     IGetDirectoryDelegate getDirectoryDelegate,
     IGetFilenameDelegate getFilenameDelegate,
     ISerializedStorageController serializedStorageController,
     IStatusController statusController)
 {
     return(new StashController <Dictionary <long, Type> >(
                new GetPathDelegate(
                    getDirectoryDelegate,
                    getFilenameDelegate),
                serializedStorageController,
                statusController));
 }
Ejemplo n.º 5
0
 public static IStashController <List <long> > CreateStashController(
     Entity entity,
     IGetDirectoryDelegate getDirectoryDelegate,
     IGetFilenameDelegate getFilenameDelegate,
     ISerializedStorageController serializedStorageController,
     IStatusController statusController)
 {
     return(new StashController <List <long> >(
                new GetPathDelegate(
                    getDirectoryDelegate,
                    getFilenameDelegate),
                serializedStorageController,
                statusController));
 }
Ejemplo n.º 6
0
 public IDataController <Type> CreateDataControllerEx <Type>(
     Entity entity,
     IRecordsController <long> recordsController,
     IGetDirectoryDelegate getDirectoryDelegate,
     IGetFilenameDelegate getFilenameDelegate)
     where Type : ProductCore
 {
     return(new DataController <Type>(
                StashControllerFactory.CreateDataStashController <Type>(
                    entity,
                    getDirectoryDelegate,
                    getFilenameDelegate,
                    serializedStorageController,
                    statusController),
                ConvertDelegateFactory.CreateConvertToIndexDelegate <Type>(),
                recordsController,
                statusController,
                storedHashController));
 }
Ejemplo n.º 7
0
        public DataControllerFactory(
            ISerializedStorageController serializedStorageController,
            // ISerializationController<string> serializationController,
            // IStorageController<string> storageController,
            IStoredHashController storedHashController,
            IGetDirectoryDelegate getDataDirectoryDelegate,
            IGetFilenameDelegate getDataFilenameDelegate,
            IStatusController statusController)
        {
            this.serializedStorageController = serializedStorageController;
            // this.serializationController = serializationController;
            // this.storageController = storageController;
            this.storedHashController = storedHashController;
            this.statusController     = statusController;

            this.getDataDirectoryDelegate = getDataDirectoryDelegate;
            getRecordsDirectoryDelegate   = new GetRelativeDirectoryDelegate(
                Directories.Base[Entity.Records],
                getDataDirectoryDelegate);

            this.getDataFilenameDelegate = getDataFilenameDelegate;
        }
        public ValidateProductFilesActivity(
            IGetDirectoryDelegate productFileDirectoryDelegate,
            IGetFilenameDelegate productFileFilenameDelegate,
            IFormatDelegate <string, string> formatValidationFileDelegate,
            IFileValidationController fileValidationController,
            IDataController <ValidationResult> validationResultsDataController,
            IDataController <GameDetails> gameDetailsDataController,
            IItemizeAsyncDelegate <GameDetails, string> itemizeGameDetailsManualUrlsAsyncDelegate,
            IItemizeAllAsyncDelegate <long> itemizeAllProductsAsyncDelegate,
            IRoutingController routingController,
            IStatusController statusController) :
            base(statusController)
        {
            this.productFileDirectoryDelegate              = productFileDirectoryDelegate;
            this.productFileFilenameDelegate               = productFileFilenameDelegate;
            this.formatValidationFileDelegate              = formatValidationFileDelegate;
            this.fileValidationController                  = fileValidationController;
            this.validationResultsDataController           = validationResultsDataController;
            this.gameDetailsDataController                 = gameDetailsDataController;
            this.itemizeGameDetailsManualUrlsAsyncDelegate = itemizeGameDetailsManualUrlsAsyncDelegate;

            this.itemizeAllProductsAsyncDelegate = itemizeAllProductsAsyncDelegate;
            this.routingController = routingController;
        }
Ejemplo n.º 9
0
 public GetFixedFilenameDelegate(string fixedFilename, IGetFilenameDelegate jsonFilenameDelegate)
 {
     this.fixedFilename = jsonFilenameDelegate.GetFilename(fixedFilename);
 }