コード例 #1
0
ファイル: ServiceQueue.cs プロジェクト: behaug/ServiceManager
        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();
        }
コード例 #2
0
 public AddServicesForm()
 {
     InitializeComponent();
     ExistingServices = new Service[0];
 }
コード例 #3
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();
            }
コード例 #4
0
ファイル: ServiceQueue.cs プロジェクト: behaug/ServiceManager
 public static ServiceQueue FromName(string queueName, Service service, ServiceQueueType queueType = ServiceQueueType.Input)
 {
     return new ServiceQueue(GetQueuePath(queueName), service, queueType);
 }
コード例 #5
0
 private void AddServiceRow(Service service)
 {
     int i = dataGridView1.Rows.Add(service.ServiceName, service.ConfigPath);
     var row = dataGridView1.Rows[i];
     row.Tag = service;
 }