/// <summary> Called to create a GenericNack object </summary> /// <param name="defaultEncoding"></param> /// <param name="buf"></param> /// <param name="offset"></param> /// <returns> GenericNack </returns> public static GenericNackSm Create(DataCodings defaultEncoding, SmppBuffer buf, ref int offset) { GenericNackSm genericNack = new GenericNackSm(defaultEncoding); try { buf.ExtractHeader(genericNack, ref offset); } catch { genericNack = null; } return(genericNack); }
/// <summary> Called to create a GenericNack object </summary> /// <param name="defaultEncoding"></param> /// <param name="buf"></param> /// <param name="offset"></param> /// <returns> GenericNack </returns> public static GenericNackSm Create(DataCodings defaultEncoding, SmppBuffer buf, ref int offset) { GenericNackSm genericNack = new GenericNackSm(defaultEncoding); try { buf.ExtractHeader(genericNack, ref offset); } catch { genericNack = null; } return genericNack; }
/// <summary> Called when a generic nack is received </summary> /// <param name="sender"></param> /// <param name="data"></param> private void ClientEventGenericNackSm(object sender, GenericNackSm data) { WriteLog("ESMEConnection : ClientEventGenericNackSm : Info : Received Generic Nack Status[{0}]", data.Status); try { // Generic Nack has been received if (ReceivedGenericNackHandler != null) { ReceivedGenericNackHandler(LogKey, (int)data.Sequence); } } catch (Exception exception) { WriteLog(LogEventNotificationTypes.Email, "ESMEConnection : ClientEventGenericNackSm : ERROR : {0}", exception.ToString()); } }
/// <summary> Called when a generic nack is received </summary> /// <param name="sender"></param> /// <param name="data"></param> private void ClientEventGenericNackSm(object sender, GenericNackSm data) { WriteLog("ESMEConnection : ClientEventGenericNackSm : Info : Received Generic Nack Status[{0}]", data.Status); try { // Generic Nack has been received if (ReceivedGenericNackHandler != null) { ReceivedGenericNackHandler(LogKey, (int) data.Sequence); } } catch (Exception exception) { WriteLog(LogEventNotificationTypes.Email, "ESMEConnection : ClientEventGenericNackSm : ERROR : {0}", exception.ToString()); } }
/// <summary> Called to fire the generic nack pdu event </summary> /// <param name="data"></param> internal void OnGenericNackSm(GenericNackSm data) { try { if (GenericNackSmEvent != null) { GenericNackSmEvent(this, data); } } catch { } }