Exemplo n.º 1
0
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
        public async ValueTask DisposeAsync()
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
        {
#if NETSTANDARD2_1 || NETCOREAPP3_1
            await OutputStream.DisposeAsync();

            await InputStream.DisposeAsync();
#else
            OutputStream.Dispose();
            InputStream.Dispose();
#endif
        }
Exemplo n.º 2
0
        public async ValueTask DisposeAsync()
        {
            await OutputStream.DisposeAsync();

            await InputStream.DisposeAsync();
        }