public static class Operations
Reference documentation and code samples for the Google.LongRunning 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.
Namespace
Google.LongRunningAssembly
Google.LongRunning.dll
Methods
BindService(OperationsBase)
public static ServerServiceDefinition BindService(Operations.OperationsBase serviceImpl)
Creates service definition that can be registered with a server
Parameter | |
---|---|
Name | Description |
serviceImpl | OperationsOperationsBase An object implementing the server-side handling logic. |
Returns | |
---|---|
Type | Description |
ServerServiceDefinition |
BindService(ServiceBinderBase, 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 | |
---|---|
Name | Description |
serviceBinder | ServiceBinderBase Service methods will be bound by calling |
serviceImpl | OperationsOperationsBase An object implementing the server-side handling logic. |