コード例 #1
0
 /// <summary>
 /// Sets a model as the default model
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='modelId'>
 /// The model id to set as default
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task SetDefaultModelAsync(this IModels operations, System.Guid modelId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     await operations.SetDefaultModelWithHttpMessagesAsync(modelId, null, cancellationToken).ConfigureAwait(false);
 }
コード例 #2
0
 /// <summary>
 /// Sets a model as the default model
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='modelId'>
 /// The model id to set as default
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task SetDefaultModelAsync(this IModels operations, Guid modelId, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.SetDefaultModelWithHttpMessagesAsync(modelId, null, cancellationToken).ConfigureAwait(false);
 }