[BindServiceMethod(typeof(Publisher), "BindService")]
public abstract class Publisher.PublisherBaseReference documentation and code samples for the Eventarc Publishing v1 API class Publisher.PublisherBase.
Base class for server-side implementations of Publisher
Namespace
Google.Cloud.Eventarc.Publishing.V1Assembly
Google.Cloud.Eventarc.Publishing.V1.dll
Methods
Publish(PublishRequest, ServerCallContext)
public virtual Task<PublishResponse> Publish(PublishRequest request, ServerCallContext context)Publish events to a message bus.
| Parameters | |
|---|---|
| Name | Description |
request |
PublishRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPublishResponse |
The response to send back to the client (wrapped by a task). |
PublishChannelConnectionEvents(PublishChannelConnectionEventsRequest, ServerCallContext)
public virtual Task<PublishChannelConnectionEventsResponse> PublishChannelConnectionEvents(PublishChannelConnectionEventsRequest request, ServerCallContext context)Publish events to a ChannelConnection in a partner's project.
| Parameters | |
|---|---|
| Name | Description |
request |
PublishChannelConnectionEventsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPublishChannelConnectionEventsResponse |
The response to send back to the client (wrapped by a task). |
PublishEvents(PublishEventsRequest, ServerCallContext)
public virtual Task<PublishEventsResponse> PublishEvents(PublishEventsRequest request, ServerCallContext context)Publish events to a subscriber's channel.
| Parameters | |
|---|---|
| Name | Description |
request |
PublishEventsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPublishEventsResponse |
The response to send back to the client (wrapped by a task). |