/// <summary> /// Raises the <see cref="E:UnknownResponseReceived"/> event. /// </summary> /// <param name="e">The <see cref="MsgPack.Rpc.Client.Protocols.UnknownResponseReceivedEventArgs"/> instance containing the event data.</param> protected virtual void OnUnknownResponseReceived(UnknownResponseReceivedEventArgs e) { if (e == null) { throw new ArgumentNullException("e"); } Contract.EndContractBlock(); var handler = Interlocked.CompareExchange(ref this.UnknownResponseReceived, null, null); if (handler != null) { handler(this, e); } }
/// <summary> /// Raises the <see cref="E:UnknownResponseReceived"/> event. /// </summary> /// <param name="e">The <see cref="MsgPack.Rpc.Client.Protocols.UnknownResponseReceivedEventArgs"/> instance containing the event data.</param> protected virtual void OnUnknownResponseReceived( UnknownResponseReceivedEventArgs e ) { if ( e == null ) { throw new ArgumentNullException( "e" ); } Contract.EndContractBlock(); var handler = Interlocked.CompareExchange( ref this.UnknownResponseReceived, null, null ); if ( handler != null ) { handler( this, e ); } }