1.8.0 (latest) 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public static class FunctionService

Reference documentation and code samples for the Cloud Functions v2 API class FunctionService.

Google Cloud Functions is used to deploy functions that are executed by
Google in response to various events. Data connected with that event is
passed to a function as the input data.

A **function** is a resource which describes a function that should be
executed and how it is triggered.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> FunctionService

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Functions.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Functions.V2/latest/Google.Cloud.Functions.V2.md.txt)

## Assembly

Google.Cloud.Functions.V2.dll

## Methods

### BindService(FunctionServiceBase)

    public static ServerServiceDefinition BindService(FunctionService.FunctionServiceBase serviceImpl)

Creates service definition that can be registered with a server

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `serviceImpl` | `FunctionServiceFunctionServiceBase` An object implementing the server-side handling logic. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ServerServiceDefinition` |   |

### BindService(ServiceBinderBase, FunctionServiceBase)

    public static void BindService(ServiceBinderBase serviceBinder, FunctionService.FunctionServiceBase 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 `AddMethod` on this object. |
| `serviceImpl` | `FunctionServiceFunctionServiceBase` An object implementing the server-side handling logic. |