/// <summary>
 /// Uploads a new host license file that was previously generated with Regutil.
 /// The content of the license is sent as a file embedded in the HTTP request.
 /// </summary>
 /// <remarks>
 /// Host only. Requires authentication.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='file'>
 /// </param>
 public static HostLicenseDto UploadLicense(this IHostLicenses operations, Stream file)
 {
     return(operations.UploadLicenseAsync(file).GetAwaiter().GetResult());
 }
예제 #2
0
 /// <summary>
 /// Uploads a new host license file that was previously generated with Regutil.
 /// The content of the license is sent as a file embedded in the HTTP request.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Administration or
 /// Administration.Write.
 ///
 /// Host only. Requires authentication.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='file'>
 /// </param>
 /// <param name='expand'>
 /// Indicates the related entities to be represented inline. The maximum depth
 /// is 2.
 /// </param>
 /// <param name='select'>
 /// Limits the properties returned in the result.
 /// </param>
 public static HostLicenseDto UploadLicense(this IHostLicenses operations, Stream file, string expand = default(string), string select = default(string))
 {
     return(operations.UploadLicenseAsync(file, expand, select).GetAwaiter().GetResult());
 }