Class PlayerService.PlayerServiceClient
Client for PlayerService
public class PlayerService.PlayerServiceClient : ClientBase<PlayerService.PlayerServiceClient>
- Inheritance
-
PlayerService.PlayerServiceClient
- Inherited Members
- Extension Methods
Constructors
PlayerServiceClient()
Protected parameterless constructor to allow creation of test doubles.
protected PlayerServiceClient()
PlayerServiceClient(CallInvoker)
Creates a new client for PlayerService that uses a custom CallInvoker
.
public PlayerServiceClient(CallInvoker callInvoker)
Parameters
callInvoker
CallInvokerThe callInvoker to use to make remote calls.
PlayerServiceClient(ChannelBase)
Creates a new client for PlayerService
public PlayerServiceClient(ChannelBase channel)
Parameters
channel
ChannelBaseThe channel to use to make remote calls.
PlayerServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
protected PlayerServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
configuration
ClientBase.ClientBaseConfigurationThe client configuration.
Methods
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
protected override PlayerService.PlayerServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
configuration
ClientBase.ClientBaseConfiguration
Returns
Pause(Empty, CallOptions)
Pause file playing if playing; otherwise do nothing.
public virtual Empty Pause(Empty request, CallOptions options)
Parameters
request
EmptyThe request to send to the server.
options
CallOptionsThe options for the call.
Returns
- Empty
The response received from the server.
Pause(Empty, Metadata, DateTime?, CancellationToken)
Pause file playing if playing; otherwise do nothing.
public virtual Empty Pause(Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
request
EmptyThe request to send to the server.
headers
MetadataThe initial metadata to send with the call. This parameter is optional.
deadline
DateTime?An optional deadline for the call. The call will be cancelled if deadline is hit.
cancellationToken
CancellationTokenAn optional token for canceling the call.
Returns
- Empty
The response received from the server.
PauseAsync(Empty, CallOptions)
Pause file playing if playing; otherwise do nothing.
public virtual AsyncUnaryCall<Empty> PauseAsync(Empty request, CallOptions options)
Parameters
request
EmptyThe request to send to the server.
options
CallOptionsThe options for the call.
Returns
- AsyncUnaryCall<Empty>
The call object.
PauseAsync(Empty, Metadata, DateTime?, CancellationToken)
Pause file playing if playing; otherwise do nothing.
public virtual AsyncUnaryCall<Empty> PauseAsync(Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
request
EmptyThe request to send to the server.
headers
MetadataThe initial metadata to send with the call. This parameter is optional.
deadline
DateTime?An optional deadline for the call. The call will be cancelled if deadline is hit.
cancellationToken
CancellationTokenAn optional token for canceling the call.
Returns
- AsyncUnaryCall<Empty>
The call object.
Reset(Empty, CallOptions)
Reset file player to the state as before running Start function.
public virtual Empty Reset(Empty request, CallOptions options)
Parameters
request
EmptyThe request to send to the server.
options
CallOptionsThe options for the call.
Returns
- Empty
The response received from the server.
Reset(Empty, Metadata, DateTime?, CancellationToken)
Reset file player to the state as before running Start function.
public virtual Empty Reset(Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
request
EmptyThe request to send to the server.
headers
MetadataThe initial metadata to send with the call. This parameter is optional.
deadline
DateTime?An optional deadline for the call. The call will be cancelled if deadline is hit.
cancellationToken
CancellationTokenAn optional token for canceling the call.
Returns
- Empty
The response received from the server.
ResetAsync(Empty, CallOptions)
Reset file player to the state as before running Start function.
public virtual AsyncUnaryCall<Empty> ResetAsync(Empty request, CallOptions options)
Parameters
request
EmptyThe request to send to the server.
options
CallOptionsThe options for the call.
Returns
- AsyncUnaryCall<Empty>
The call object.
ResetAsync(Empty, Metadata, DateTime?, CancellationToken)
Reset file player to the state as before running Start function.
public virtual AsyncUnaryCall<Empty> ResetAsync(Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
request
EmptyThe request to send to the server.
headers
MetadataThe initial metadata to send with the call. This parameter is optional.
deadline
DateTime?An optional deadline for the call. The call will be cancelled if deadline is hit.
cancellationToken
CancellationTokenAn optional token for canceling the call.
Returns
- AsyncUnaryCall<Empty>
The call object.
Resume(Empty, CallOptions)
Resume file playing if paused; otherwise do nothing.
public virtual Empty Resume(Empty request, CallOptions options)
Parameters
request
EmptyThe request to send to the server.
options
CallOptionsThe options for the call.
Returns
- Empty
The response received from the server.
Resume(Empty, Metadata, DateTime?, CancellationToken)
Resume file playing if paused; otherwise do nothing.
public virtual Empty Resume(Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
request
EmptyThe request to send to the server.
headers
MetadataThe initial metadata to send with the call. This parameter is optional.
deadline
DateTime?An optional deadline for the call. The call will be cancelled if deadline is hit.
cancellationToken
CancellationTokenAn optional token for canceling the call.
Returns
- Empty
The response received from the server.
ResumeAsync(Empty, CallOptions)
Resume file playing if paused; otherwise do nothing.
public virtual AsyncUnaryCall<Empty> ResumeAsync(Empty request, CallOptions options)
Parameters
request
EmptyThe request to send to the server.
options
CallOptionsThe options for the call.
Returns
- AsyncUnaryCall<Empty>
The call object.
ResumeAsync(Empty, Metadata, DateTime?, CancellationToken)
Resume file playing if paused; otherwise do nothing.
public virtual AsyncUnaryCall<Empty> ResumeAsync(Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
request
EmptyThe request to send to the server.
headers
MetadataThe initial metadata to send with the call. This parameter is optional.
deadline
DateTime?An optional deadline for the call. The call will be cancelled if deadline is hit.
cancellationToken
CancellationTokenAn optional token for canceling the call.
Returns
- AsyncUnaryCall<Empty>
The call object.
Start(Empty, CallOptions)
Start file playing.
public virtual Empty Start(Empty request, CallOptions options)
Parameters
request
EmptyThe request to send to the server.
options
CallOptionsThe options for the call.
Returns
- Empty
The response received from the server.
Start(Empty, Metadata, DateTime?, CancellationToken)
Start file playing.
public virtual Empty Start(Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
request
EmptyThe request to send to the server.
headers
MetadataThe initial metadata to send with the call. This parameter is optional.
deadline
DateTime?An optional deadline for the call. The call will be cancelled if deadline is hit.
cancellationToken
CancellationTokenAn optional token for canceling the call.
Returns
- Empty
The response received from the server.
StartAsync(Empty, CallOptions)
Start file playing.
public virtual AsyncUnaryCall<Empty> StartAsync(Empty request, CallOptions options)
Parameters
request
EmptyThe request to send to the server.
options
CallOptionsThe options for the call.
Returns
- AsyncUnaryCall<Empty>
The call object.
StartAsync(Empty, Metadata, DateTime?, CancellationToken)
Start file playing.
public virtual AsyncUnaryCall<Empty> StartAsync(Empty request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
request
EmptyThe request to send to the server.
headers
MetadataThe initial metadata to send with the call. This parameter is optional.
deadline
DateTime?An optional deadline for the call. The call will be cancelled if deadline is hit.
cancellationToken
CancellationTokenAn optional token for canceling the call.
Returns
- AsyncUnaryCall<Empty>
The call object.