//static void Main(string[] args)
        //{
        //    ServiceBase[] ServicesToRun;
        //    ServicesToRun = new ServiceBase[]
        //    {
        //        new SchedulerService()
        //    };


        //    ServiceBase.Run(ServicesToRun);
        //}

        public static void Main(string[] args)
        {
            EmailMessaging.EmailMessagingChannel obj1 = new EmailMessaging.EmailMessagingChannel();
            obj1.SendMessage();
            obj1 = null;
            //var obj = new OrderUpdation.OrderUpdation(new Data.Infrastructure.DatabaseFactory());
            //obj.FetchApiOrders();
            //obj = null;
        }
 protected void EmailMessaging_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
 {
     try
     {
         EmailMessaging.EmailMessagingChannel obj = new EmailMessaging.EmailMessagingChannel();
         obj.SendMessage();
         obj = null;
     }
     catch { }
 }