Example #1
0
 public void Main()
 {
     this.subscriber = new EventSubscriber("localhost:5000");
     //Run(this);
     OnStart(null);
     ReadLine();
 }
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            EventSubscriber subscriber = new EventSubscriber("127.0.0.1:5050");

            subscriber.Start();
            //Run(this);
            Console.ReadLine();
        }
Example #3
0
        public Service()
        {
            var logger = LogManager.GetLogger("LoyaltyProgram.EventConsumer.Logger");

            _eventSubscriber = new EventSubscriber("http://localhost:28719", logger);
            //#if DEBUG
            //            _eventSubscriber.SubscriptionCycleCallback().Wait();
            //#else
            Run(this);
            //#endif
        }
Example #4
0
 public void Entry(string[] args)
 {
     this.subscriber = new EventSubscriber(args[0]);
     if (args.Length >= 2 && args[1].Equals("--service"))
     {
         Run(this);
     }
     else
     {
         OnStart(null);
     }
     ReadLine();
 }
Example #5
0
        public void Main()
        {
            var specialOfferUrl = Environment.GetEnvironmentVariable("SpecialOffersUrl");

            Console.WriteLine(specialOfferUrl);

            this.subscriber = new EventSubscriber(specialOfferUrl);
            this.subscriber.Start();

            Console.ReadLine();

            this.subscriber.Stop();
        }