[BindServiceMethod(typeof(Publisher), "BindService")]
public abstract class 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
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 |
Task<PublishChannelConnectionEventsResponse> | 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 |
Task<PublishEventsResponse> | The response to send back to the client (wrapped by a task). |