示例#1
0
 private void ProcessRequestResults(ExchangeCertificate certificate, string request)
 {
     if (this.BinaryEncoded)
     {
         BinaryFileDataObject binaryFileDataObject = new BinaryFileDataObject();
         binaryFileDataObject.FileData = Convert.FromBase64String(request);
         base.WriteObject(binaryFileDataObject);
         if (this.GenerateRequest && !string.IsNullOrEmpty(this.RequestFile))
         {
             this.WriteRequest(binaryFileDataObject.FileData, string.Empty);
             return;
         }
     }
     else
     {
         string text = ManageExchangeCertificate.WrapCertificateRequestWithPemTags(request);
         base.WriteObject(text);
         if (this.GenerateRequest && !string.IsNullOrEmpty(this.RequestFile))
         {
             this.WriteRequest(null, text);
         }
     }
 }