Ejemplo n.º 1
0
 public MachineConnection(Machine machine, ProcessManagerServiceHandler serviceHandler)
 {
     Machine         = machine;
     ServiceHandler  = serviceHandler;
     Configuration   = null;
     ProcessStatuses = null;
 }
Ejemplo n.º 2
0
        public static MachineConnection CreateConnection(IProcessManagerEventHandler processManagerEventHandler, Machine machine)
        {
            ProcessManagerServiceHandler serviceHandler    = ProcessManagerServiceConnectionHandler.Instance.CreateServiceHandler(processManagerEventHandler, machine);
            MachineConnection            machineConnection = new MachineConnection(machine, serviceHandler);

            Connections[machine] = machineConnection;
            return(machineConnection);
        }
Ejemplo n.º 3
0
 private void ButtonValidateMachine_Click(object sender, EventArgs e)
 {
     try
     {
         Machine machine = new Machine(textBoxMachineHostName.Text);
         using (ProcessManagerServiceHandler serviceHandler = new ProcessManagerServiceHandler(machine))
         {
             serviceHandler.Service.Ping();
         }
         Messenger.ShowInformation("Machine connection validated", "Connection to a Process Manager service on the specified machine was successfully established.");
     }
     catch (Exception ex)
     {
         Messenger.ShowError("Machine connection validation failed", "Connection to a Process Manager service on the specified machine could not be established.", ex);
     }
 }
Ejemplo n.º 4
0
 public ServiceHandlerConnectionChangedEventArgs(ProcessManagerServiceHandler serviceHandler, ProcessManagerServiceHandlerStatus status)
     : this(serviceHandler, status, null)
 {
 }
Ejemplo n.º 5
0
 public ServiceHandlerConnectionChangedEventArgs(ProcessManagerServiceHandler serviceHandler, ProcessManagerServiceHandlerStatus status, Exception exception)
 {
     ServiceHandler = serviceHandler;
     Status         = status;
     Exception      = exception;
 }
Ejemplo n.º 6
0
 public static bool MachineIsValid(Machine machine)
 {
     return(ProcessManagerServiceHandler.HostNameValid(machine));
 }