public ServiceQueue(string queuePath, Service service, ServiceQueueType queueType = ServiceQueueType.Input, ServiceQueue parentQueue = null) { ParentQueue = parentQueue; QueueType = queueType; Path = queuePath; Service = service; Name = GetQueueName(queuePath); _queueLengthCounter = new PerformanceCounter("MSMQ Queue", "Messages in Queue", Path, true); TestIfQueueIsValid(); }
public AddServicesForm() { InitializeComponent(); ExistingServices = new Service[0]; }
public ServiceNode(Service service) { Service = service; InputQueueNode = new QueueNode(Service.InputQueue); ErrorQueueNode = new QueueNode(Service.ErrorQueue); Nodes.Add(InputQueueNode); Nodes.Add(ErrorQueueNode); ImageIndex = SelectedImageIndex = 0; UpdateData(); UpdateNodeText(); }
public static ServiceQueue FromName(string queueName, Service service, ServiceQueueType queueType = ServiceQueueType.Input) { return new ServiceQueue(GetQueuePath(queueName), service, queueType); }
private void AddServiceRow(Service service) { int i = dataGridView1.Rows.Add(service.ServiceName, service.ConfigPath); var row = dataGridView1.Rows[i]; row.Tag = service; }