你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventGridSenderClient Class

Definition

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

Constructors

Name Description
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

Name Description
Pipeline

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

Methods

Name Description
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