public void Dispatch <TRequest>(TRequest aRequest, object state)
 {
     if (IsEnabled)
     {
         Logger.LogDebug($"{GetType().Name}: {nameof(this.Dispatch)}");
         Logger.LogDebug($"{GetType().Name}: aRequest.GetType().FullName:{aRequest.GetType().FullName}");
         var reduxAction = new ReduxAction(aRequest);
         RegisteredFunction.Invoke <object>(jsFunctionName, reduxAction, state);
     }
 }
 public void Dispatch <TRequest>(TRequest aRequest, object aState)
 {
     if (IsEnabled)
     {
         Logger.LogDebug($"{GetType().Name}: {nameof(this.Dispatch)}");
         Logger.LogDebug($"{GetType().Name}: aRequest.GetType().FullName:{aRequest.GetType().FullName}");
         var reduxAction = new ReduxAction(aRequest);
         JSRuntime.Current.InvokeAsync <object>(JsFunctionName, reduxAction, aState);
     }
 }