public Descriptor() { UnaryMethod = Method.Unary <global::Plexus.Interop.Testing.Generated.EchoRequest, global::Plexus.Interop.Testing.Generated.EchoRequest>(Id, UnaryMethodId); ServerStreamingMethod = Method.ServerStreaming <global::Plexus.Interop.Testing.Generated.EchoRequest, global::Plexus.Interop.Testing.Generated.EchoRequest>(Id, ServerStreamingMethodId); ClientStreamingMethod = Method.ClientStreaming <global::Plexus.Interop.Testing.Generated.EchoRequest, global::Plexus.Interop.Testing.Generated.EchoRequest>(Id, ClientStreamingMethodId); DuplexStreamingMethod = Method.DuplexStreaming <global::Plexus.Interop.Testing.Generated.EchoRequest, global::Plexus.Interop.Testing.Generated.EchoRequest>(Id, DuplexStreamingMethodId); }
public Descriptor() { UnaryMethod = Method.Unary <global::Plexus.Interop.Samples.GreetingClient.Generated.GreetingRequest, global::Plexus.Interop.Samples.GreetingClient.Generated.GreetingResponse>(Id, UnaryMethodId); ServerStreamingMethod = Method.ServerStreaming <global::Plexus.Interop.Samples.GreetingClient.Generated.GreetingRequest, global::Plexus.Interop.Samples.GreetingClient.Generated.GreetingResponse>(Id, ServerStreamingMethodId); ClientStreamingMethod = Method.ClientStreaming <global::Plexus.Interop.Samples.GreetingClient.Generated.GreetingRequest, global::Plexus.Interop.Samples.GreetingClient.Generated.GreetingResponse>(Id, ClientStreamingMethodId); DuplexStreamingMethod = Method.DuplexStreaming <global::Plexus.Interop.Samples.GreetingClient.Generated.GreetingRequest, global::Plexus.Interop.Samples.GreetingClient.Generated.GreetingResponse>(Id, DuplexStreamingMethodId); }
public static DuplexStreamingMethodDiscoveryQuery <TRequest, TResponse> Create <TRequest, TResponse>( DuplexStreamingMethod <TRequest, TResponse> method) => new DuplexStreamingMethodDiscoveryQuery <TRequest, TResponse>(method.Reference);