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); }
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; }
protected WorkflowLoopOperation(WorkflowContext context) : base(context) { ActivityClassTypes = context.ActivityTypes; LocationConfig = context.LocationConfig; }