# Workflows v1beta API - Class Workflows.WorkflowsBase (2.0.0-beta06)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.Workflows.WorkflowsBase)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/2.0.0-beta05/Google.Cloud.Workflows.V1Beta.Workflows.WorkflowsBase)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/1.0.0-beta03/Google.Cloud.Workflows.V1Beta.Workflows.WorkflowsBase)

    [BindServiceMethod(typeof(Workflows), "BindService")]
    public abstract class Workflows.WorkflowsBase

Reference documentation and code samples for the Workflows v1beta API class Workflows.WorkflowsBase.

Base class for server-side implementations of Workflows

## Inheritance

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

## 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.Workflows.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta)

## Assembly

Google.Cloud.Workflows.V1Beta.dll

## Methods

### CreateWorkflow(CreateWorkflowRequest, ServerCallContext)

    public virtual Task<Operation> CreateWorkflow(CreateWorkflowRequest request, ServerCallContext context)

Creates a new workflow. If a workflow with the specified name already
exists in the specified project and location, the long running operation
will return \[ALREADY_EXISTS\]\[google.rpc.Code.ALREADY_EXISTS\] error.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.CreateWorkflowRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |

### DeleteWorkflow(DeleteWorkflowRequest, ServerCallContext)

    public virtual Task<Operation> DeleteWorkflow(DeleteWorkflowRequest request, ServerCallContext context)

Deletes a workflow with the specified name.
This method also cancels and deletes all running executions of the
workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.DeleteWorkflowRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |

### GetWorkflow(GetWorkflowRequest, ServerCallContext)

    public virtual Task<Workflow> GetWorkflow(GetWorkflowRequest request, ServerCallContext context)

Gets details of a single Workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.GetWorkflowRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.Workflow` | The response to send back to the client (wrapped by a task). |

### ListWorkflows(ListWorkflowsRequest, ServerCallContext)

    public virtual Task<ListWorkflowsResponse> ListWorkflows(ListWorkflowsRequest request, ServerCallContext context)

Lists Workflows in a given project and location.
The default order is not specified.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.ListWorkflowsRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.ListWorkflowsResponse` | The response to send back to the client (wrapped by a task). |

### UpdateWorkflow(UpdateWorkflowRequest, ServerCallContext)

    public virtual Task<Operation> UpdateWorkflow(UpdateWorkflowRequest request, ServerCallContext context)

Updates an existing workflow.
Running this method has no impact on already running executions of the
workflow. A new revision of the workflow may be created as a result of a
successful update operation. In that case, such revision will be used
in new workflow executions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Workflows.V1Beta/latest/Google.Cloud.Workflows.V1Beta.UpdateWorkflowRequest` The request received from the client. |
| `context` | `https://cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ServerCallContext.html` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | The response to send back to the client (wrapped by a task). |