コード例 #1
0
 public void AddCertificate(ApiCertificateResponseModel item)
 {
     if (!this.Certificates.Any(x => x.Id == item.Id))
     {
         this.Certificates.Add(item);
     }
 }
コード例 #2
0
        public virtual ApiCertificateRequestModel MapResponseToRequest(
            ApiCertificateResponseModel response)
        {
            var request = new ApiCertificateRequestModel();

            request.SetProperties(
                response.Archived,
                response.Created,
                response.DataVersion,
                response.EnvironmentIds,
                response.JSON,
                response.Name,
                response.NotAfter,
                response.Subject,
                response.TenantIds,
                response.TenantTags,
                response.Thumbprint);
            return(request);
        }