コード例 #1
0
ファイル: RouteInvoker.cs プロジェクト: gaochundong/Happer
 public async Task<Response> Invoke(Route route, CancellationToken cancellationToken, DynamicDictionary parameters, Context context)
 {
     var result = await route.Invoke(parameters, cancellationToken);
     return this.negotiator.NegotiateResponse(result, context);
 }
コード例 #2
0
ファイル: RouteInvoker.cs プロジェクト: honghong75042/Happer
        public async Task <Response> Invoke(Route route, CancellationToken cancellationToken, DynamicDictionary parameters, Context context)
        {
            var result = await route.Invoke(parameters, cancellationToken).ConfigureAwait(false);

            return(this.negotiator.NegotiateResponse(result, context));
        }