예제 #1
0
 public async Task SendAsync(ServiceAction action)
 {
     subject.OnNext(action);
     await Task.CompletedTask;
 }
예제 #2
0
 public static T Reply <T>(this ServiceAction request, T response) where T : ServiceAction
 {
     response.Id = request.Id;
     return(response);
 }