# Network Security v1beta1 API - Class DnsThreatDetectorService.DnsThreatDetectorServiceBase (2.0.0-beta08)

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

- [2.0.0-beta08 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.DnsThreatDetectorService.DnsThreatDetectorServiceBase)
- [2.0.0-beta07](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/2.0.0-beta07/Google.Cloud.NetworkSecurity.V1Beta1.DnsThreatDetectorService.DnsThreatDetectorServiceBase)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/1.0.0-beta02/Google.Cloud.NetworkSecurity.V1Beta1.DnsThreatDetectorService.DnsThreatDetectorServiceBase)

    [BindServiceMethod(typeof(DnsThreatDetectorService), "BindService")]
    public abstract class DnsThreatDetectorService.DnsThreatDetectorServiceBase

Reference documentation and code samples for the Network Security v1beta1 API class DnsThreatDetectorService.DnsThreatDetectorServiceBase.

Base class for server-side implementations of DnsThreatDetectorService

## Inheritance

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

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

## Assembly

Google.Cloud.NetworkSecurity.V1Beta1.dll

## Methods

### CreateDnsThreatDetector(CreateDnsThreatDetectorRequest, ServerCallContext)

    public virtual Task<DnsThreatDetector> CreateDnsThreatDetector(CreateDnsThreatDetectorRequest request, ServerCallContext context)

Creates a new DnsThreatDetector in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.CreateDnsThreatDetectorRequest` 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.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.DnsThreatDetector` | The response to send back to the client (wrapped by a task). |

### DeleteDnsThreatDetector(DeleteDnsThreatDetectorRequest, ServerCallContext)

    public virtual Task<Empty> DeleteDnsThreatDetector(DeleteDnsThreatDetectorRequest request, ServerCallContext context)

Deletes a single DnsThreatDetector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.DeleteDnsThreatDetectorRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.html` | The response to send back to the client (wrapped by a task). |

### GetDnsThreatDetector(GetDnsThreatDetectorRequest, ServerCallContext)

    public virtual Task<DnsThreatDetector> GetDnsThreatDetector(GetDnsThreatDetectorRequest request, ServerCallContext context)

Gets the details of a single DnsThreatDetector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.GetDnsThreatDetectorRequest` 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.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.DnsThreatDetector` | The response to send back to the client (wrapped by a task). |

### ListDnsThreatDetectors(ListDnsThreatDetectorsRequest, ServerCallContext)

    public virtual Task<ListDnsThreatDetectorsResponse> ListDnsThreatDetectors(ListDnsThreatDetectorsRequest request, ServerCallContext context)

Lists DnsThreatDetectors in a given project and location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.ListDnsThreatDetectorsRequest` 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.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.ListDnsThreatDetectorsResponse` | The response to send back to the client (wrapped by a task). |

### UpdateDnsThreatDetector(UpdateDnsThreatDetectorRequest, ServerCallContext)

    public virtual Task<DnsThreatDetector> UpdateDnsThreatDetector(UpdateDnsThreatDetectorRequest request, ServerCallContext context)

Updates a single DnsThreatDetector.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.UpdateDnsThreatDetectorRequest` 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.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.DnsThreatDetector` | The response to send back to the client (wrapped by a task). |