public void AnonymousLambdaIsUnambiguousForEachExtensionMethod()
 {
     IAppBuilder app = new StubBuilder();
     app.UseFilter(request => { });
     app.UseFilter(async request => { await Task.Delay(0); });
     app.UseHandler((request, response) => { });
     app.UseHandler(async (request, response) => { await Task.Delay(0); });
     app.UseHandler(async (request, response, next) => { await next(); });
 }
Beispiel #2
0
        public void AnonymousLambdaIsUnambiguousForEachExtensionMethod()
        {
            IAppBuilder app = new StubBuilder();

            app.UseFilter(request => { });
            app.UseFilter(async request => { await Task.Delay(0); });
            app.UseHandler((request, response) => { });
            app.UseHandler(async(request, response) => { await Task.Delay(0); });
            app.UseHandler(async(request, response, next) => { await next(); });
        }
 public void MethodGroupIsUnambiguousForEachExtensionMethod()
 {
     IAppBuilder app = new StubBuilder();
     app.UseFilter((Action<OwinRequest>)OnFilter1);
     app.UseFilterAsync(OnFilter2);
     app.UseHandler((Action<OwinRequest, OwinResponse>)OnHandler1);
     app.UseHandlerAsync(OnHandler2);
     app.UseHandlerAsync(OnHandler3);
 }
Beispiel #4
0
        public void MethodGroupIsUnambiguousForEachExtensionMethod()
        {
            IAppBuilder app = new StubBuilder();

            app.UseFilter((Action <OwinRequest>)OnFilter1);
            app.UseFilterAsync(OnFilter2);
            app.UseHandler((Action <OwinRequest, OwinResponse>)OnHandler1);
            app.UseHandlerAsync(OnHandler2);
            app.UseHandlerAsync(OnHandler3);
        }