예제 #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='signatureCommand'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> UpdateSignatureImageAsync(this ICertificateApi operations, LMSApplicationCoreCommandsCertificateEditSignatureCommand signatureCommand, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateSignatureImageWithHttpMessagesAsync(signatureCommand, lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='orgId'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LMSApplicationCoreViewModelCertificateCertificateViewModel> GetTenantCertificateAsync(this ICertificateApi operations, string lang, string orgId = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetTenantCertificateWithHttpMessagesAsync(lang, orgId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='orgId'>
 /// </param>
 public static LMSApplicationCoreViewModelCertificateCertificateViewModel GetTenantCertificate(this ICertificateApi operations, string lang, string orgId = default(string))
 {
     return(operations.GetTenantCertificateAsync(lang, orgId).GetAwaiter().GetResult());
 }
예제 #4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='signatureCommand'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static object UpdateSignatureImage(this ICertificateApi operations, LMSApplicationCoreCommandsCertificateEditSignatureCommand signatureCommand, string lang)
 {
     return(operations.UpdateSignatureImageAsync(signatureCommand, lang).GetAwaiter().GetResult());
 }
예제 #5
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='certificateCommand'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LMSApplicationCoreViewModelCertificateCertificateViewModel> SaveCertificateAsync(this ICertificateApi operations, LMSApplicationCoreCommandsCertificateAddEditCertificateCommand certificateCommand, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.SaveCertificateWithHttpMessagesAsync(certificateCommand, lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #6
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='certificateCommand'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static LMSApplicationCoreViewModelCertificateCertificateViewModel SaveCertificate(this ICertificateApi operations, LMSApplicationCoreCommandsCertificateAddEditCertificateCommand certificateCommand, string lang)
 {
     return(operations.SaveCertificateAsync(certificateCommand, lang).GetAwaiter().GetResult());
 }