Esempio n. 1
0
 public LocationRepository(ILocationConfig <T> appConfig, IDocClient locConfig)
 {
     _databaseId   = appConfig?.DatabaseId;
     _collectionId = appConfig?.CollectionId;
     _locConfig    = locConfig;
     _client       = new DocumentClient(new Uri(_locConfig.Endpoint), _locConfig.Key, _locConfig.Policy);
 }
Esempio n. 2
0
        public WorkflowContext(int sleepIntervalTimeInSeconds, 
                               ILocationConfig locationConfig, 
                               Dictionary<string, Type> activityTypes,
                               string loggingCategory,
                               IThreadSafeDataAccess threadSafeDataAccess,
                               ExitStrategy exitStrategy,
                               Action onEngineRevolutionCallBack = null,
                               int parallelThreadCount = -1)

            : base(sleepIntervalTimeInSeconds, loggingCategory, threadSafeDataAccess, exitStrategy, onEngineRevolutionCallBack)
        {
            LocationConfig = locationConfig;
            ActivityTypes = activityTypes;
            ParallelThreadCount = parallelThreadCount;
        }
Esempio n. 3
0
 protected WorkflowLoopOperation(WorkflowContext context)
     : base(context)
 {
     ActivityClassTypes = context.ActivityTypes;
     LocationConfig = context.LocationConfig;
 }