Class Worker
Namespace: ArmoniK.Api.gRPC.V1.Worker
Assembly: ArmoniK.Api.Core.dll, ArmoniK.Api.Worker.dll
public static class Worker
Inheritance
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
Descriptor
Service descriptor
public static ServiceDescriptor Descriptor { get; }
Property Value
ServiceDescriptor
Methods
BindService(WorkerBase)
Creates service definition that can be registered with a server
public static ServerServiceDefinition BindService(Worker.WorkerBase serviceImpl)
Parameters
serviceImpl Worker.WorkerBase
An object implementing the server-side handling logic.
Returns
BindService(ServiceBinderBase, WorkerBase)
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, Worker.WorkerBase serviceImpl)
Parameters
serviceBinder ServiceBinderBase
Service methods will be bound by calling AddMethod on this object.
serviceImpl Worker.WorkerBase
An object implementing the server-side handling logic.
BindService(WorkerBase)
Creates service definition that can be registered with a server
public static ServerServiceDefinition BindService(Worker.WorkerBase serviceImpl)
Parameters
serviceImpl Worker.WorkerBase
An object implementing the server-side handling logic.
Returns
BindService(ServiceBinderBase, WorkerBase)
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, Worker.WorkerBase serviceImpl)
Parameters
serviceBinder ServiceBinderBase
Service methods will be bound by calling AddMethod on this object.
serviceImpl Worker.WorkerBase
An object implementing the server-side handling logic.