Owneat Technical Guide main Help

Class RestaurantService

Assembly: Grpc.dll

public static class RestaurantService

Inheritance

object ← RestaurantService

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.MemberwiseClone\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Properties

Descriptor

Service descriptor

public static ServiceDescriptor Descriptor { get; }

Property Value

ServiceDescriptor

Methods

BindService\(RestaurantServiceBase\)

Creates service definition that can be registered with a server

public static ServerServiceDefinition BindService(RestaurantService.RestaurantServiceBase serviceImpl)

Parameters

serviceImpl RestaurantService. RestaurantServiceBase

An object implementing the server-side handling logic.

Returns

ServerServiceDefinition

BindService\(ServiceBinderBase, RestaurantServiceBase\)

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.

public static void BindService(ServiceBinderBase serviceBinder, RestaurantService.RestaurantServiceBase serviceImpl)

Parameters

serviceBinder ServiceBinderBase

Service methods will be bound by calling AddMethod on this object.

serviceImpl RestaurantService. RestaurantServiceBase

An object implementing the server-side handling logic.

Last modified: 21 May 2024