@@ -115,32 +115,32 @@ static void EmitHelperMethods(StreamingHubClientBuildContext ctx)
115115 if ( ctx . EnableStreamingHubDiagnosticHandler )
116116 {
117117 ctx . Writer . AppendLineWithFormat ( $$ """
118- global::System.Threading.Tasks.Task<TResponse> WriteMessageWithResponseDiagnosticTaskAsync<TRequest, TResponse>(int methodId, TRequest message, global::MagicOnion.TransportReliability reliability = global::MagicOnion.TransportReliability.Reliable, [global::System.Runtime.CompilerServices.CallerMemberName] string callerMemberName = default!)
118+ global::System.Threading.Tasks.Task<TResponse> WriteMessageWithResponseDiagnosticTaskAsync<TRequest, TResponse>(int methodId, TRequest message, [global::System.Runtime.CompilerServices.CallerMemberName] string callerMemberName = default!)
119119 {
120120 if (diagnosticHandler is null)
121121 {
122- return base.WriteMessageWithResponseTaskAsync<TRequest, TResponse>(methodId, message, reliability );
122+ return base.WriteMessageWithResponseTaskAsync<TRequest, TResponse>(methodId, message);
123123 }
124124
125125 return diagnosticHandler.OnMethodInvoke(this, methodId, callerMemberName, message, isFireAndForget: true, base.WriteMessageWithResponseValueTaskOfTAsync<TRequest, TResponse>).AsTask();
126126 }
127127
128- async global::System.Threading.Tasks.ValueTask WriteMessageWithResponseDiagnosticValueTaskAsync<TRequest, TResponse>(int methodId, TRequest message, global::MagicOnion.TransportReliability reliability = global::MagicOnion.TransportReliability.Reliable, [global::System.Runtime.CompilerServices.CallerMemberName] string callerMemberName = default!)
128+ async global::System.Threading.Tasks.ValueTask WriteMessageWithResponseDiagnosticValueTaskAsync<TRequest, TResponse>(int methodId, TRequest message, [global::System.Runtime.CompilerServices.CallerMemberName] string callerMemberName = default!)
129129 {
130130 if (diagnosticHandler is null)
131131 {
132- await base.WriteMessageWithResponseValueTaskAsync<TRequest, TResponse>(methodId, message, reliability );
132+ await base.WriteMessageWithResponseValueTaskAsync<TRequest, TResponse>(methodId, message);
133133 return;
134134 }
135135
136136 await diagnosticHandler.OnMethodInvoke(this, methodId, callerMemberName, message, isFireAndForget: true, base.WriteMessageWithResponseValueTaskOfTAsync<TRequest, TResponse>);
137137 }
138138
139- global::System.Threading.Tasks.ValueTask<TResponse> WriteMessageWithResponseDiagnosticValueTaskOfTAsync<TRequest, TResponse>(int methodId, TRequest message, global::MagicOnion.TransportReliability reliability = global::MagicOnion.TransportReliability.Reliable, [global::System.Runtime.CompilerServices.CallerMemberName] string callerMemberName = default!)
139+ global::System.Threading.Tasks.ValueTask<TResponse> WriteMessageWithResponseDiagnosticValueTaskOfTAsync<TRequest, TResponse>(int methodId, TRequest message, [global::System.Runtime.CompilerServices.CallerMemberName] string callerMemberName = default!)
140140 {
141141 if (diagnosticHandler is null)
142142 {
143- return base.WriteMessageWithResponseValueTaskOfTAsync<TRequest, TResponse>(methodId, message, reliability );
143+ return base.WriteMessageWithResponseValueTaskOfTAsync<TRequest, TResponse>(methodId, message);
144144 }
145145
146146 return diagnosticHandler.OnMethodInvoke(this, methodId, callerMemberName, message, isFireAndForget: true, base.WriteMessageWithResponseValueTaskOfTAsync<TRequest, TResponse>);
0 commit comments