Пример #1
0
        public Task <OutputStream?>?Dispatch(IceInternal.Incoming inS, Current current)
        {
            IObject?servant;

            if (current.Id.Name.Equals("router"))
            {
                servant = _router;
            }
            else
            {
                test(current.Id.Category.Length == 0);
                test(current.Id.Name.Equals("test"));
                servant = new TestIntf();
            }
            return(servant.Dispatch(inS, current));
        }
Пример #2
0
        public ValueTask <OutgoingResponseFrame> DispatchAsync(InputStream istr, Current current)
        {
            IObject?servant;

            if (current.Id.Name.Equals("router"))
            {
                servant = _router;
            }
            else
            {
                test(current.Id.Category.Length == 0);
                test(current.Id.Name.Equals("test"));
                servant = new TestIntf();
            }
            return(servant.DispatchAsync(istr, current));
        }
Пример #3
0
        public ValueTask <OutgoingResponseFrame> DispatchAsync(IncomingRequestFrame request, Current current)
        {
            IObject?servant;

            if (current.Identity.Name.Equals("router"))
            {
                servant = _router;
            }
            else
            {
                TestHelper.Assert(current.Identity.Category.Length == 0);
                TestHelper.Assert(current.Identity.Name.Equals("test"));
                servant = new TestIntf();
            }
            return(servant.DispatchAsync(request, current));
        }