/// <summary>
 ///     Invoke after response if it is set.
 /// </summary>
 /// <param name="args"></param>
 /// <returns></returns>
 protected async Task onAfterResponse(SessionEventArgs args)
 {
     if (AfterResponse != null)
     {
         await AfterResponse.InvokeAsync(this, args, ExceptionFunc);
     }
 }
 /// <summary>
 ///     Invoke after response if it is set.
 /// </summary>
 /// <param name="args"></param>
 /// <returns></returns>
 private async Task invokeAfterResponse(SessionEventArgs args)
 {
     if (AfterResponse != null)
     {
         await AfterResponse.InvokeAsync(this, args, ExceptionFunc);
     }
 }