/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, GreetingServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_Greet, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Greet.GreetingRequest, global::Greet.GreetingResponse>(serviceImpl.Greet)); serviceBinder.AddMethod(__Method_GreetingManyTimes, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::Greet.GreetingManyTimesRequest, global::Greet.GreetingManyTimesResponse>(serviceImpl.GreetingManyTimes)); serviceBinder.AddMethod(__Method_LongGreet, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod <global::Greet.LongGreetRequest, global::Greet.LongGreetResponse>(serviceImpl.LongGreet)); serviceBinder.AddMethod(__Method_GreetitEveryone, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::Greet.GreetEveryoneRequest, global::Greet.GreetEveryoneResponse>(serviceImpl.GreetitEveryone)); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(GreetingServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_greeting, serviceImpl.greeting) .AddMethod(__Method_query, serviceImpl.query) .AddMethod(__Method_insert, serviceImpl.insert).Build()); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(GreetingServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_Greet, serviceImpl.Greet) .AddMethod(__Method_GreetManyTime, serviceImpl.GreetManyTime) .AddMethod(__Method_GreetLong, serviceImpl.GreetLong).Build()); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(GreetingServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_Greet, serviceImpl.Greet) .AddMethod(__Method_GreetManyTimes, serviceImpl.GreetManyTimes) .AddMethod(__Method_LongGreet, serviceImpl.LongGreet) .AddMethod(__Method_GreetEveryone, serviceImpl.GreetEveryone) .AddMethod(__Method_GreetDeadline, serviceImpl.GreetDeadline).Build()); }
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, GreetingServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_Greet, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Greet.GreetingRequest, global::Greet.GreetingResponse>(serviceImpl.Greet)); }
/// <summary>Creates service definition that can be registered with a server</summary> public static ServerServiceDefinition BindService(GreetingServiceBase serviceImpl) { return(ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_greeting, serviceImpl.greeting).Build()); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(GreetingServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_greet_with_deadline, serviceImpl.greet_with_deadline).Build()); }
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, GreetingServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_greet_with_deadline, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Greeting.GreetingRequest, global::Greeting.Greetingresponse>(serviceImpl.greet_with_deadline)); }