Exemplo n.º 1
0
        public async Task AdapterUseChaining()
        {
            SimpleAdapter a = new SimpleAdapter();

            a.Use(new CallCountingMiddleware()).Use(new CallCountingMiddleware());
            // Compiled. Test passed.
        }
Exemplo n.º 2
0
        public void AdapterUseChaining()
        {
            var a = new SimpleAdapter();

            a.Use(new CallCountingMiddleware()).Use(new CallCountingMiddleware());
        }
Exemplo n.º 3
0
        public void AdapterSingleUse()
        {
            var a = new SimpleAdapter();

            a.Use(new CallCountingMiddleware());
        }