Eventarc Publishing v1 API - Class Publisher.PublisherBase (2.0.0-beta02)

[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

Inheritance

Object > Publisher.PublisherBase

Namespace

Google.Cloud.Eventarc.Publishing.V1

Assembly

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
NameDescription
requestPublishChannelConnectionEventsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
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
NameDescription
requestPublishEventsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<PublishEventsResponse>

The response to send back to the client (wrapped by a task).