示例#1
0
        static void Main()
        {
            var channelProviders = new ChannelProviderBase[]
            {
                new Handlers.CustomerHandlers.ChannelProvider(),
                new Handlers.InvoiceHandlers.ChannelProvider(),
                new Handlers.ProductHandlers.ChannelProvider(),
                new Handlers.Audit.ChannelProvider()
            };

            PointOfSaleBus.Start(
                channelProvider: new CompositeChannelProvider(channelProviders),
                busStateChangedHandler: new BusStateChangedHandler()
                );
        }
示例#2
0
 public static void Main()
 {
     PointOfSaleBus.Start(new ChannelProvider());
 }
示例#3
0
 static void Main()
 {
     PointOfSaleBus.Start(new ChannelProvider(), new BusStateChangedHandler());
 }