Пример #1
0
        public static void Main(string[] args)
        {
            SingleBrokerConfig config = new SingleBrokerConfig();

            config.brokerAddress = "127.0.0.1:15555";
            Broker broker = new SingleBroker(config);

            ServiceConfig serviceConfig = new ServiceConfig(broker);

            serviceConfig.mq             = "MyService";
            serviceConfig.serviceHandler = new MyServiceHandler();

            Service service = new Service(serviceConfig);

            service.Start();
        }
Пример #2
0
 public Service(ServiceConfig config)
 {
     this.config = config;
 }
Пример #3
0
 public ConsumerThreadStart(ServiceConfig config)
 {
     this.config = config;
 }