[BindServiceMethod(typeof(Publisher), "BindService")]
public abstract class Publisher.PublisherBase
Reference 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 |
PublishRequest The request received from the client. |
context |
ServerCallContext The 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 |
PublishChannelConnectionEventsRequest The request received from the client. |
context |
ServerCallContext The 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 |
PublishEventsRequest The request received from the client. |
context |
ServerCallContext The 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). |