File: HubServerProxy.GeneratedIMyHub.g.cs
Project: src\src\SignalR\clients\csharp\Client\test\UnitTests\Microsoft.AspNetCore.SignalR.Client.Tests.csproj (Microsoft.AspNetCore.SignalR.Client.Tests)
// <auto-generated>
// Generated by Microsoft.AspNetCore.Client.SourceGenerator
// </auto-generated>
#nullable enable
 
using Microsoft.AspNetCore.SignalR.Client;
 
namespace Microsoft.AspNetCore.SignalR.Client.Tests
{
    internal static partial class HubServerProxyExtensions
    {
        private sealed class GeneratedIMyHub : Microsoft.AspNetCore.SignalR.Client.Tests.HubServerProxyGeneratorTests.IMyHub
        {
            private readonly HubConnection connection;
            internal GeneratedIMyHub(HubConnection connection)
            {
                this.connection = connection;
            }
    
        public System.Threading.Tasks.Task GetNothing()
        {
            return this.connection.InvokeAsync("GetNothing");
        }
 
        public System.Threading.Tasks.Task<int> GetScalar()
        {
            return this.connection.InvokeAsync<int>("GetScalar");
        }
 
        public System.Threading.Tasks.Task<System.Collections.Generic.List<int>> GetCollection()
        {
            return this.connection.InvokeAsync<System.Collections.Generic.List<int>>("GetCollection");
        }
 
        public System.Threading.Tasks.Task<int> SetScalar(int a)
        {
            return this.connection.InvokeAsync<int>("SetScalar", a);
        }
 
        public System.Threading.Tasks.Task<System.Collections.Generic.List<int>> SetCollection(System.Collections.Generic.List<int> a)
        {
            return this.connection.InvokeAsync<System.Collections.Generic.List<int>>("SetCollection", a);
        }
 
        public System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<int>> StreamToClientViaChannel()
        {
            return this.connection.StreamAsChannelAsync<int>("StreamToClientViaChannel");
        }
 
        public System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<int>> StreamToClientViaChannelWithToken(System.Threading.CancellationToken cancellationToken)
        {
            return this.connection.StreamAsChannelAsync<int>("StreamToClientViaChannelWithToken", cancellationToken);
        }
 
        public System.Collections.Generic.IAsyncEnumerable<int> StreamToClientViaEnumerableWithToken(System.Threading.CancellationToken cancellationToken)
        {
            return this.connection.StreamAsync<int>("StreamToClientViaEnumerableWithToken", cancellationToken);
        }
 
        public System.Threading.Tasks.Task StreamFromClientViaChannel(System.Threading.Channels.ChannelReader<int> reader)
        {
            return this.connection.SendAsync("StreamFromClientViaChannel", reader);
        }
 
        public System.Threading.Tasks.Task StreamFromClientViaEnumerable(System.Collections.Generic.IAsyncEnumerable<int> reader)
        {
            return this.connection.SendAsync("StreamFromClientViaEnumerable", reader);
        }
 
        public System.Threading.Tasks.Task<int> StreamFromClientButAlsoReturnValue(System.Threading.Channels.ChannelReader<int> reader)
        {
            return this.connection.InvokeAsync<int>("StreamFromClientButAlsoReturnValue", reader);
        }
 
        public System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<int>> StreamBidirectionalViaChannel(System.Threading.Channels.ChannelReader<float> reader)
        {
            return this.connection.StreamAsChannelAsync<int>("StreamBidirectionalViaChannel", reader);
        }
 
        public System.Threading.Tasks.Task<System.Threading.Channels.ChannelReader<int>> StreamBidirectionalViaChannelWithToken(System.Threading.Channels.ChannelReader<float> reader, System.Threading.CancellationToken cancellationToken)
        {
            return this.connection.StreamAsChannelAsync<int>("StreamBidirectionalViaChannelWithToken", reader, cancellationToken);
        }
 
        public System.Collections.Generic.IAsyncEnumerable<int> StreamBidirectionalViaEnumerable(System.Collections.Generic.IAsyncEnumerable<float> reader)
        {
            return this.connection.StreamAsync<int>("StreamBidirectionalViaEnumerable", reader);
        }
 
        public System.Collections.Generic.IAsyncEnumerable<int> StreamBidirectionalViaEnumerableWithToken(System.Collections.Generic.IAsyncEnumerable<float> reader, System.Threading.CancellationToken cancellationToken)
        {
            return this.connection.StreamAsync<int>("StreamBidirectionalViaEnumerableWithToken", reader, cancellationToken);
        }
 
        public System.Threading.Tasks.ValueTask ReturnValueTask()
        {
            return new System.Threading.Tasks.ValueTask(this.connection.InvokeAsync("ReturnValueTask"));
        }
 
        public System.Threading.Tasks.ValueTask<int> ReturnGenericValueTask()
        {
            return new System.Threading.Tasks.ValueTask<int>(this.connection.InvokeAsync<int>("ReturnGenericValueTask"));
        }
 
        public System.Threading.Tasks.Task<int?> HandleNullables(float? nullable)
        {
            return this.connection.InvokeAsync<int?>("HandleNullables", nullable);
        }
 
        }
    }
}