Show / Hide Table of Contents

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
System.Object
Operations
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.LongRunning
Assembly: Google.LongRunning.dll
Syntax
public static class Operations

Methods

BindService(Operations.OperationsBase)

Creates service definition that can be registered with a server

Declaration
public static ServerServiceDefinition BindService(Operations.OperationsBase serviceImpl)
Parameters
Type Name Description
Operations.OperationsBase serviceImpl

An object implementing the server-side handling logic.

Returns
Type Description
ServerServiceDefinition

BindService(ServiceBinderBase, Operations.OperationsBase)

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.

Declaration
public static void BindService(ServiceBinderBase serviceBinder, Operations.OperationsBase serviceImpl)
Parameters
Type Name Description
ServiceBinderBase serviceBinder

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

Operations.OperationsBase serviceImpl

An object implementing the server-side handling logic.

Back to top