Ejemplo n.º 1
0
 public LoggingConsumerWrapper(IExecutionLogPublisher logger, IConsumer consumer, Guid resourceId, string userName)
 {
     _logger     = logger;
     _consumer   = consumer;
     _resourceId = resourceId;
     _userName   = userName;
 }
Ejemplo n.º 2
0
 public Implementation(IHangfireContext hangfireContext, ConfigImpl implConfig)
 {
     _logger          = implConfig.ExecutionLoggerFactory.New(new JsonSerializer(), new WebSocketPool());
     _writer          = implConfig.Writer;
     _pause           = implConfig.PauseHelper;
     _hangfireContext = hangfireContext;
     _persistence     = Config.Persistence;
     _deserializer    = new Dev2JsonSerializer();
     _eventWaitHandlerFactory.New();
 }
Ejemplo n.º 3
0
 public ManualResumptionActivity(PersistenceSettings config, IPersistenceExecution resumeExecution, IExecutionLogPublisher logger)
 {
     DisplayName      = "Manual Resumption";
     OverrideDataFunc = new ActivityFunc <string, bool>
     {
         DisplayName = "Data Action",
         Argument    = new DelegateInArgument <string>($"explicitData_{DateTime.Now:yyyyMMddhhmmss}"),
         Handler     = new DsfSequenceActivity(),
     };
     _persistenceEnabled = config.Enable;
     _scheduler          = resumeExecution;
     _logger             = logger;
 }
Ejemplo n.º 4
0
            public Implementation(IArgs options, Config implConfig)
            {
                _options     = options;
                _logger      = implConfig.ExecutionLoggerFactory.New(new JsonSerializer(), new WebSocketPool());
                _writer      = implConfig.Writer;
                _filePath    = implConfig.FilePath;
                _environment = implConfig.EnvironmentWrapper;

                _serverProxyFactory               = implConfig.ServerProxyFactory;
                _resourceCatalogProxyFactory      = implConfig.ResourceCatalogProxyFactory;
                _workerContextFactory             = implConfig.WorkerContextFactory;
                _triggersCatalogFactory           = implConfig.TriggersCatalogFactory;
                _fileSystemWatcherFactory         = implConfig.FileSystemWatcherFactory;
                _queueWorkerImplementationFactory = implConfig.QueueWorkerImplementationFactory;
            }
Ejemplo n.º 5
0
 public ResumptionAttribute(IExecutionLogPublisher logger, IResumptionFactory resumptionFactory)
 {
     _logger            = logger;
     _resumptionFactory = resumptionFactory;
 }
Ejemplo n.º 6
0
 public ResumptionAttribute(IExecutionLogPublisher logger)
 {
     _logger = logger;
 }