Exemplo n.º 1
0
 /// <summary>
 ///  As of RC6.1, unregisters a callback
 /// </summary>
 /// <param name="obj"></param>
 public static void UnRegisterCallbacks(IFGSMS_Callbacks obj)
 {
     MessageProcessor mp = MessageProcessor.Instance;
     if (callbacks.Contains(obj))
         callbacks.Remove(obj);
 }
Exemplo n.º 2
0
 /// <summary>
 /// As of RC6.1, Enables client/service code to register for callbacks for when certain events occur
 /// </summary>
 /// <param name="obj"></param>
 public static void RegisterCallbacks(IFGSMS_Callbacks obj)
 {
     MessageProcessor mp = MessageProcessor.Instance;
     if (!callbacks.Contains(obj))
         callbacks.AddLast(obj);
 }