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(); }
public Service(ServiceConfig config) { this.config = config; }
public ConsumerThreadStart(ServiceConfig config) { this.config = config; }