/// <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); } }
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); } }
public BroadcastEventArgs(GCRISNote note) { this.Note = note; }