Example #1
0
        /// <summary>
        /// Send note 2 BillboardServer.
        /// Do not throw exception
        /// </summary>
        /// <param name="note"></param>
        /// <returns></returns>
        public static int SendNote(GCRISNote note)
        {
            try
            {
                GetBillBoardServiceObject();

                if (server != null)
                {
                    server.BroadCast(note);
                    return(0);
                }
                else
                {
                    return(-1);
                }
            }
            catch (Exception ex)
            {
                System.Diagnostics.EventLog.WriteEntry("BillBoardService", ex.Message, System.Diagnostics.EventLogEntryType.Error);
                return(-1);
            }
        }
Example #2
0
        public static int SendNote(GCRISNote note, ref string strError)
        {
            try
            {
                GetBillBoardServiceObject();

                if (server != null)
                {
                    server.BroadCast(note);
                    return(0);
                }
                else
                {
                    strError = "Could not get BillBoardServiceObject";
                    return(-1);
                }
            }
            catch (Exception ex)
            {
                strError = ex.Message;
                return(-1);
            }
        }
Example #3
0
 public BroadcastEventArgs(GCRISNote note)
 {
     this.Note = note;
 }