/// <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, RealmsServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_ListRealms, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Gaming.V1Beta.ListRealmsRequest, global::Google.Cloud.Gaming.V1Beta.ListRealmsResponse>(serviceImpl.ListRealms)); serviceBinder.AddMethod(__Method_GetRealm, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Gaming.V1Beta.GetRealmRequest, global::Google.Cloud.Gaming.V1Beta.Realm>(serviceImpl.GetRealm)); serviceBinder.AddMethod(__Method_CreateRealm, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Gaming.V1Beta.CreateRealmRequest, global::Google.LongRunning.Operation>(serviceImpl.CreateRealm)); serviceBinder.AddMethod(__Method_DeleteRealm, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Gaming.V1Beta.DeleteRealmRequest, global::Google.LongRunning.Operation>(serviceImpl.DeleteRealm)); serviceBinder.AddMethod(__Method_UpdateRealm, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Gaming.V1Beta.UpdateRealmRequest, global::Google.LongRunning.Operation>(serviceImpl.UpdateRealm)); serviceBinder.AddMethod(__Method_PreviewRealmUpdate, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Gaming.V1Beta.PreviewRealmUpdateRequest, global::Google.Cloud.Gaming.V1Beta.PreviewRealmUpdateResponse>(serviceImpl.PreviewRealmUpdate)); }
/// <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(RealmsServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_ListRealms, serviceImpl.ListRealms) .AddMethod(__Method_GetRealm, serviceImpl.GetRealm) .AddMethod(__Method_CreateRealm, serviceImpl.CreateRealm) .AddMethod(__Method_DeleteRealm, serviceImpl.DeleteRealm) .AddMethod(__Method_UpdateRealm, serviceImpl.UpdateRealm) .AddMethod(__Method_PreviewRealmUpdate, serviceImpl.PreviewRealmUpdate).Build()); }