public CreateProjectJob( ILogger logger, IJobUpdater jobUpdater) { _logger = logger.ForContext <CreateProjectJob>(); _jobUpdater = jobUpdater; }
private void setupWCFConnection() { try { httpFactory = new ChannelFactory <IJobUpdater>( new BasicHttpBinding(), new EndpointAddress( "http://localhost:9000/Reverse")); pipeFactory = new ChannelFactory <IJobUpdater>( new NetNamedPipeBinding(), new EndpointAddress( "net.pipe://localhost/PipeReverse")); httpProxy = httpFactory.CreateChannel(); pipeProxy = pipeFactory.CreateChannel(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error setting up service connection", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public JobHandler( ILogger logger, IJobDequeuer jobDequeuer, IJobRepository jobRepository, IJobFactory jobFactory, IJobUpdater jobUpdater) { _logger = logger.ForContext <JobHandler>(); _jobDequeuer = jobDequeuer; _jobRepository = jobRepository; _jobFactory = jobFactory; _jobUpdater = jobUpdater; }