Пример #1
0
        public async Task <(string, TestPipeline.AnyBox)> GetAnyCap(uint n, BareProxy inCap, CancellationToken cancellationToken_)
        {
            Interlocked.Increment(ref _counters.CallCount);
            Assert.AreEqual(234u, n);
            var s = await inCap.Cast <ITestInterface>(true).Foo(123, true, cancellationToken_);

            Assert.AreEqual("foo", s);
            return("bar", new TestPipeline.AnyBox()
            {
                Cap = BareProxy.FromImpl(new TestExtendsImpl(_counters))
            });
        }