Exemple #1
0
 /// <summary>
 /// Get test coverage report
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IDictionary <string, int?> > GetReportAsync(this IAutoRestReportService operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetReportWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Get test coverage report
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IDictionary <string, int?> GetReport(this IAutoRestReportService operations)
 {
     return(Task.Factory.StartNew(s => ((IAutoRestReportService)s).GetReportAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemple #3
0
 /// <summary>
 /// Get test coverage report
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IDictionary <string, int?> GetReport(this IAutoRestReportService operations)
 {
     return(operations.GetReportAsync().GetAwaiter().GetResult());
 }
Exemple #4
0
 /// <summary>
 /// Get test coverage report
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='qualifier'>
 /// If specified, qualifies the generated report further (e.g. '2.7' vs '3.5'
 /// in for Python). The only effect is, that generators that run all tests
 /// several times, can distinguish the generated reports.
 /// </param>
 public static IDictionary <string, int?> GetReport(this IAutoRestReportService operations, string qualifier = default(string))
 {
     return(operations.GetReportAsync(qualifier).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get test coverage report
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <System.Collections.Generic.IDictionary <string, int?> > GetReportAsync(this IAutoRestReportService operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetReportWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get test coverage report
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static System.Collections.Generic.IDictionary <string, int?> GetReport(this IAutoRestReportService operations)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IAutoRestReportService)s).GetReportAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }