Esempio n. 1
0
        public void InstanceMethodsHaveAsynchronousEquivalentsValueTask()
        {
            var @object = new ClassWithAsyncEquivalentsValueTask();

            @object.SaveChanges();
            @object.Abort();
            @object.AcceptSocket();
            @object.AcceptTcpClient();
            @object.AccessFailed();
        }
Esempio n. 2
0
 public static bool AccessFailed(this ClassWithAsyncEquivalentsValueTask @object) => true;
Esempio n. 3
0
 public static ValueTask <bool> AcceptTcpClientAsync(this ClassWithAsyncEquivalentsValueTask @object) => new ValueTask <bool>(true);