Class Operations (2.2.0)

public static class Operations

Manages long-running operations with an API service.

When an API method normally takes long time to complete, it can be designed to return [Operation][google.longrunning.Operation] to the client, and the client can use this interface to receive the real response asynchronously by polling the operation resource, or pass the operation resource to another API (such as Google Cloud Pub/Sub API) to receive the response. Any API service that returns long-running operations should implement the Operations interface so developers can have a consistent client experience.

Inheritance

Object > Operations

Namespace

Google.LongRunning

Assembly

Google.LongRunning.dll

Methods

BindService(Operations.OperationsBase)

public static ServerServiceDefinition BindService(Operations.OperationsBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
NameDescription
serviceImplOperations.OperationsBase

An object implementing the server-side handling logic.

Returns
TypeDescription
ServerServiceDefinition

BindService(ServiceBinderBase, Operations.OperationsBase)

public static void BindService(ServiceBinderBase serviceBinder, Operations.OperationsBase serviceImpl)

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.

Parameters
NameDescription
serviceBinderServiceBinderBase

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

serviceImplOperations.OperationsBase

An object implementing the server-side handling logic.