Beispiel #1
0
 public GrpcWorkerClient(LoggingContext loggingContext, DistributedInvocationId invocationId, string ipAddress, int port, EventHandler <ConnectionFailureEventArgs> onConnectionFailureAsync)
 {
     m_loggingContext    = loggingContext;
     m_connectionManager = new ClientConnectionManager(loggingContext, ipAddress, port, invocationId);
     m_connectionManager.OnConnectionFailureAsync += onConnectionFailureAsync;
     m_client = new Worker.WorkerClient(m_connectionManager.Channel);
 }
Beispiel #2
0
 public GrpcMasterClient(LoggingContext loggingContext, string buildId, string ipAddress, int port, EventHandler onConnectionTimeOutAsync)
 {
     m_loggingContext    = loggingContext;
     m_connectionManager = new ClientConnectionManager(m_loggingContext, ipAddress, port, buildId);
     m_connectionManager.OnConnectionTimeOutAsync += onConnectionTimeOutAsync;
     m_client = new Master.MasterClient(m_connectionManager.Channel);
 }
 public GrpcWorkerClient(LoggingContext loggingContext, DistributedBuildId buildId, string ipAddress, int port, EventHandler <ConnectionTimeoutEventArgs> onConnectionTimeOutAsync)
 {
     m_loggingContext    = loggingContext;
     m_connectionManager = new ClientConnectionManager(loggingContext, ipAddress, port, buildId);
     m_connectionManager.OnConnectionTimeOutAsync += onConnectionTimeOutAsync;
     m_client = new Worker.WorkerClient(m_connectionManager.Channel);
 }
 public void Initialize(string ipAddress, int port, EventHandler <ConnectionTimeoutEventArgs> onConnectionTimeOutAsync)
 {
     m_connectionManager = new ClientConnectionManager(m_loggingContext, ipAddress, port, m_buildId);
     m_connectionManager.OnConnectionTimeOutAsync += onConnectionTimeOutAsync;
     m_client      = new Orchestrator.OrchestratorClient(m_connectionManager.Channel);
     m_initialized = true;
 }
Beispiel #5
0
 public GrpcWorkerClient(LoggingContext loggingContext, string buildId, string ipAddress, int port, EventHandler onConnectionTimeOutAsync, Func <CancellationToken, Task <IDisposable> > attachAcquireAsync)
 {
     m_loggingContext    = loggingContext;
     m_connectionManager = new ClientConnectionManager(loggingContext, ipAddress, port, buildId);
     m_connectionManager.OnConnectionTimeOutAsync += onConnectionTimeOutAsync;
     m_client             = new Worker.WorkerClient(m_connectionManager.Channel);
     m_attachAcquireAsync = attachAcquireAsync;
 }
Beispiel #6
0
 public GrpcMasterClient(LoggingContext loggingContext, string buildId, string ipAddress, int port)
 {
     m_loggingContext    = loggingContext;
     m_connectionManager = new ClientConnectionManager(m_loggingContext, ipAddress, port, buildId);
     m_client            = new Master.MasterClient(m_connectionManager.Channel);
     m_senderInfo        = new SenderInfo()
     {
         BuildId    = buildId,
         SenderName = DistributionHelpers.MachineName,
         SenderId   = Guid.NewGuid().ToString()
     };
 }
Beispiel #7
0
 public GrpcWorkerClient(LoggingContext loggingContext, string buildId, string ipAddress, int port)
 {
     m_loggingContext    = loggingContext;
     m_connectionManager = new ClientConnectionManager(loggingContext, ipAddress, port);
     m_client            = new Worker.WorkerClient(m_connectionManager.Channel);
     m_senderInfo        = new SenderInfo()
     {
         BuildId    = buildId,
         SenderName = MachineName,
         SenderId   = Guid.NewGuid().ToString()
     };
 }
 public GrpcMasterClient(LoggingContext loggingContext, string buildId, string ipAddress, int port)
 {
     m_loggingContext    = loggingContext;
     m_connectionManager = new ClientConnectionManager(m_loggingContext, ipAddress, port, buildId);
     m_client            = new Master.MasterClient(m_connectionManager.Channel);
 }