Beispiel #1
0
 public StringRecordsController(
     IRecordsController <long> indexRecordsController,
     IConvertDelegate <string, long> convertStringToIndexDelegate)
 {
     this.indexRecordsController       = indexRecordsController;
     this.convertStringToIndexDelegate = convertStringToIndexDelegate;
 }
Beispiel #2
0
        public DataController(
            IStashController <Dictionary <long, Type> > stashController,
            IConvertDelegate <Type, long> convertProductToIndexDelegate,
            IRecordsController <long> recordsController,
            IStatusController statusController,
            params ICommitAsyncDelegate[] additionalCommitDelegates)
        {
            this.stashController = stashController;

            this.convertProductToIndexDelegate = convertProductToIndexDelegate;

            this.recordsController = recordsController;

            this.statusController          = statusController;
            this.additionalCommitDelegates = additionalCommitDelegates;
        }
 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));
 }
        public PageResultUpdateActivity(
            AC activityContext,
            IActivityContextController activityContextController,
            IGetPageResultsAsyncDelegate <PageType> getPageResultsAsyncDelegate,
            IItemizeDelegate <IList <PageType>, DataType> itemizePageResultsDelegate,
            IDataController <DataType> dataController,
            IRecordsController <string> activityRecordsController,
            IStatusController statusController) :
            base(statusController)
        {
            this.activityContext           = activityContext;
            this.activityContextController = activityContextController;

            this.getPageResultsAsyncDelegate = getPageResultsAsyncDelegate;
            this.itemizePageResultsDelegate  = itemizePageResultsDelegate;

            this.dataController            = dataController;
            this.activityRecordsController = activityRecordsController;
        }