コード例 #1
0
ファイル: InnerBus.cs プロジェクト: makarichev/templates
 public async Task SendAsync(ServiceAction action)
 {
     subject.OnNext(action);
     await Task.CompletedTask;
 }
コード例 #2
0
ファイル: InnerBus.cs プロジェクト: makarichev/templates
 public static T Reply <T>(this ServiceAction request, T response) where T : ServiceAction
 {
     response.Id = request.Id;
     return(response);
 }