/// <summary> /// View information about a driver asynchronously. /// </summary> /// <param name="input">The input for the request.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>The <see cref="Driver"/> with the given identifier or null if the driver doesn't exist.</returns> public Task <Driver> GetAsync(DriverGetInput input, CancellationToken cancellationToken = default) { Ensure.NotNull(input, nameof(input)); return(GetRequestAsync <Driver>(input.Id.ToString(), input, cancellationToken)); }
/// <summary> /// View information about a driver. /// </summary> /// <param name="input">The input for the request.</param> /// <returns>The driver with the given identifier or null if the driver doesn't exist.</returns> public Driver Get(DriverGetInput input) { Ensure.NotNull(input, nameof(input)); return(GetRequest <Driver>(input.Id.ToString(), input)); }