コード例 #1
0
 /// <inheritdoc />
 public override Response UpdateStatus(CancellationToken cancellationToken = default)
 {
     if (!HasCompleted)
     {
         _response = _client.GetSessionInternal(_response.Value.SessionId, $"{nameof(StartRenderingSessionOperation)}.{nameof(UpdateStatus)}", cancellationToken);
     }
     return(_response.GetRawResponse());
 }
コード例 #2
0
 /// <summary>
 /// Construct a StartSessionOperation from a session which already exists.
 /// </summary>
 /// <param name="sessionId"></param>
 /// <param name="client"></param>
 public StartRenderingSessionOperation(string sessionId, RemoteRenderingClient client)
 {
     _client   = client;
     _response = client.GetSessionInternal(sessionId, $"{nameof(StartRenderingSessionOperation)}.{nameof(StartRenderingSessionOperation)}");
 }