/// <summary> /// Initializes a new instance of the <see cref="ProxyDings"/> class. /// </summary> /// <param name="innerdings">The innerdings.</param> public ProxyDings(IDings innerdings) { Guard.NotNull(() => innerdings, innerdings); this.innerdings = innerdings; this.MyCount = count; count++; }
/// <summary> /// Last Recording /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='responseBodyPath'> /// </param> /// <param name='authToken'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task GetLastRecordingAsync(this IDings operations, string responseBodyPath, string authToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.GetLastRecordingWithHttpMessagesAsync(responseBodyPath, authToken, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Last Recording /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='responseBodyPath'> /// </param> /// <param name='authToken'> /// </param> public static void GetLastRecording(this IDings operations, string responseBodyPath, string authToken = default(string)) { operations.GetLastRecordingAsync(responseBodyPath, authToken).GetAwaiter().GetResult(); }
/// <summary> /// Dings /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='authToken'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task GetAsync(this IDings operations, string authToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.GetWithHttpMessagesAsync(authToken, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Dings /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='authToken'> /// </param> public static void Get(this IDings operations, string authToken = default(string)) { operations.GetAsync(authToken).GetAwaiter().GetResult(); }