/// <summary>
 /// An event that is called when channel exception occured.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="pushChannel"></param>
 /// <param name="error"></param>
 private void ChannelException(object sender, PushSharp.Core.IPushChannel pushChannel, Exception error)
 {
     LogManager.CurrentInstance.ErrorLogger.LogError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, error.Message);
 }
 /// <summary>
 /// An event is called when channel created.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="pushChannel"></param>
 private void ChannelCreated(object sender, PushSharp.Core.IPushChannel pushChannel)
 {
 }
Exemplo n.º 3
0
 private void ChannelException(object sender, PushSharp.Core.IPushChannel pushChannel, Exception error)
 {
 }
 /// <summary>
 /// An event is called when channel created.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="pushChannel"></param>
 private void ChannelCreated(object sender, PushSharp.Core.IPushChannel pushChannel)
 {
     //Console.WriteLine("Channel created on " + DateTime.Now);
     LogManager.CurrentInstance.InfoLogger.LogInfo(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, "Channel created on " + DateTime.Now, System.Reflection.MethodBase.GetCurrentMethod().Name);
 }
 /// <summary>
 /// An event is called when channel created.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="pushChannel"></param>
 private void ChannelCreated(object sender, PushSharp.Core.IPushChannel pushChannel)
 {
     Console.WriteLine("Channel created on " + DateTime.Now);
 }