Example #1
0
 /// <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++;
 }
Example #2
0
 /// <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++;
 }
Example #3
0
 /// <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();
 }
Example #4
0
 /// <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();
 }
Example #5
0
 /// <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();
 }
Example #6
0
 /// <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();
 }