Compartilhar via


EventGridSenderClient Class

Definition

The EventGridSender service client.

public class EventGridSenderClient
type EventGridSenderClient = class
Public Class EventGridSenderClient
Inheritance
EventGridSenderClient

Constructors

EventGridSenderClient()

Initializes a new instance of EventGridSenderClient for mocking.

EventGridSenderClient(Uri, String, AzureKeyCredential, EventGridSenderClientOptions)

Initializes a new instance of EventGridSenderClient.

EventGridSenderClient(Uri, String, AzureKeyCredential)

Initializes a new instance of EventGridSenderClient.

EventGridSenderClient(Uri, String, TokenCredential, EventGridSenderClientOptions)

Initializes a new instance of EventGridSenderClient.

EventGridSenderClient(Uri, String, TokenCredential)

Initializes a new instance of EventGridSenderClient.

Properties

Pipeline

The HTTP pipeline for sending and receiving REST requests and responses.

Methods

Send(CloudEvent, CancellationToken)

Publish Single Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error.

Send(IEnumerable<CloudEvent>, CancellationToken)

Publish Batch Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error.

SendAsync(CloudEvent, CancellationToken)

Publish Single Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error.

SendAsync(IEnumerable<CloudEvent>, CancellationToken)

Publish Batch Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error.

Applies to