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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eOperations\u003c/code\u003e class in the \u003ccode\u003eGoogle.LongRunning\u003c/code\u003e namespace manages long-running operations for API services, allowing clients to receive responses asynchronously.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eGoogle.LongRunning\u003c/code\u003e documentation is 3.3.0, with several prior versions also available, including 3.2.0, 3.1.0, 3.0.0, 2.3.0, and 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindService\u003c/code\u003e method allows for the creation of a service definition to register with a server, accepting an \u003ccode\u003eOperationsBase\u003c/code\u003e object as an implementation.\u003c/p\u003e\n"],["\u003cp\u003eAnother \u003ccode\u003eBindService\u003c/code\u003e overload lets you register service methods with a service binder, useful for customizing service binding, and requires a \u003ccode\u003eServiceBinderBase\u003c/code\u003e and an \u003ccode\u003eOperationsBase\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOperations\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and includes standard object methods such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google.LongRunning - Class Operations (3.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.3.0 (latest)](/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations)\n- [3.2.0](/dotnet/docs/reference/Google.LongRunning/3.2.0/Google.LongRunning.Operations)\n- [3.1.0](/dotnet/docs/reference/Google.LongRunning/3.1.0/Google.LongRunning.Operations)\n- [3.0.0](/dotnet/docs/reference/Google.LongRunning/3.0.0/Google.LongRunning.Operations)\n- [2.3.0](/dotnet/docs/reference/Google.LongRunning/2.3.0/Google.LongRunning.Operations)\n- [2.2.0](/dotnet/docs/reference/Google.LongRunning/2.2.0/Google.LongRunning.Operations) \n\n public static class Operations\n\nReference documentation and code samples for the Google.LongRunning class Operations.\n\nManages long-running operations with an API service.\n\nWhen an API method normally takes long time to complete, it can be designed\nto return \\[Operation\\]\\[google.longrunning.Operation\\] to the client, and the client can use this\ninterface to receive the real response asynchronously by polling the\noperation resource, or pass the operation resource to another API (such as\nGoogle Cloud Pub/Sub API) to receive the response. Any API service that\nreturns long-running operations should implement the `Operations` interface\nso developers can have a consistent client experience. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Operations \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.LongRunning](/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning)\n\nAssembly\n--------\n\nGoogle.LongRunning.dll\n\nMethods\n-------\n\n### BindService(OperationsBase)\n\n public static ServerServiceDefinition BindService(Operations.OperationsBase serviceImpl)\n\nCreates service definition that can be registered with a server\n\n### BindService(ServiceBinderBase, OperationsBase)\n\n public static void BindService(ServiceBinderBase serviceBinder, Operations.OperationsBase serviceImpl)\n\nRegister service method with a service binder with or without implementation. Useful when customizing the service binding logic.\nNote: this method is part of an experimental API that can change or be removed without any prior notice."]]