Closed mayuki closed 3 months ago
This PR combines two methods into a single method that can be interrupted in processing. IStreamingHubDiagnosticHandler implementation must call invokeMethod.
IStreamingHubDiagnosticHandler
invokeMethod
namespace MagicOnion.Client; public interface IStreamingHubDiagnosticHandler { + public delegate Task<TResponse> InvokeMethodDelegate<TRequest, TResponse>(int methodId, TRequest value); + Task<TResponse> OnMethodInvoke<THub, TRequest, TResponse>(THub hubInstance, int methodId, string methodName, TRequest request, bool isFireAndForget, InvokeMethodDelegate<TRequest, TResponse> invokeMethod); - void OnRequestBegin<THub, TRequest>(THub hubInstance, Guid requestId, string methodName, TRequest request, bool isFireAndForget); - void OnRequestEnd<THub, TResponse>(THub hubInstance, Guid requestId, string methodName, TResponse response, Exception? exception); void OnBroadcastEvent<THub, T>(THub hubInstance, string methodName, T value); }
This PR combines two methods into a single method that can be interrupted in processing.
IStreamingHubDiagnosticHandler
implementation must callinvokeMethod
.