/// <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(GatewayServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_Join, serviceImpl.Join) .AddMethod(__Method_GetJoinStatus, serviceImpl.GetJoinStatus) .AddMethod(__Method_CancelJoin, serviceImpl.CancelJoin).Build()); }
public static void BindService(grpc::ServiceBinderBase serviceBinder, GatewayServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_GetResource, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Api.HttpBody, global::Google.Api.HttpBody>(serviceImpl.GetResource)); serviceBinder.AddMethod(__Method_PostResource, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Api.HttpBody, global::Google.Api.HttpBody>(serviceImpl.PostResource)); serviceBinder.AddMethod(__Method_DeleteResource, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Api.HttpBody, global::Google.Api.HttpBody>(serviceImpl.DeleteResource)); serviceBinder.AddMethod(__Method_PutResource, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Api.HttpBody, global::Google.Api.HttpBody>(serviceImpl.PutResource)); serviceBinder.AddMethod(__Method_PatchResource, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Api.HttpBody, global::Google.Api.HttpBody>(serviceImpl.PatchResource)); }
public static grpc::ServerServiceDefinition BindService(GatewayServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetResource, serviceImpl.GetResource) .AddMethod(__Method_PostResource, serviceImpl.PostResource) .AddMethod(__Method_DeleteResource, serviceImpl.DeleteResource) .AddMethod(__Method_PutResource, serviceImpl.PutResource) .AddMethod(__Method_PatchResource, serviceImpl.PatchResource).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, GatewayServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_Join, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Improbable.OnlineServices.Proto.Gateway.JoinRequest, global::Google.LongRunning.Operation>(serviceImpl.Join)); }
/// <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, GatewayServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_Join, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Improbable.OnlineServices.Proto.Gateway.JoinRequest, global::Improbable.OnlineServices.Proto.Gateway.JoinResponse>(serviceImpl.Join)); serviceBinder.AddMethod(__Method_GetJoinStatus, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Improbable.OnlineServices.Proto.Gateway.GetJoinStatusRequest, global::Improbable.OnlineServices.Proto.Gateway.GetJoinStatusResponse>(serviceImpl.GetJoinStatus)); serviceBinder.AddMethod(__Method_CancelJoin, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Improbable.OnlineServices.Proto.Gateway.CancelJoinRequest, global::Improbable.OnlineServices.Proto.Gateway.CancelJoinResponse>(serviceImpl.CancelJoin)); }