Ejemplo n.º 1
0
        public void Start()
        {
            try
            {
                Emitter.Connect();
            }
            catch
            {
                log.Error("Could not log in as " + UserName + "/" + Password);
            }

            try
            {
                if (Emitter.Connection.IsOpen)
                {
                    EmitMsg();
                }
            }
            catch
            {
                log.Error("Could not queue messages as " + Emitter.UserName + "/" + Emitter.Password);
            }

            try
            {
                GuestEmitter.Connect();
            }
            catch
            {
                log.Error("Could not log in as " + GuestEmitter.UserName + "/" + GuestEmitter.Password);
            }

            try
            {
                if (GuestEmitter.Connection.IsOpen)
                {
                    GuestEmitter.EmitGuestMsg();
                }
            }
            catch
            {
                log.Error("Could not queue messages as " + GuestEmitter.UserName + "/" + GuestEmitter.Password);
            }
        }
Ejemplo n.º 2
0
 public void Continue()
 {
     log.Debug("Continue with more msgs");
     EmitMsg();
     GuestEmitter.EmitGuestMsg();
 }