internal DiscoveryClientProtocol(HttpWebClientProtocol protocol) : base(protocol)
 {
     this.references = new DiscoveryClientReferenceCollection();
     this.documents = new DiscoveryClientDocumentCollection();
     this.inlinedSchemas = new Hashtable();
     this.additionalInformation = new ArrayList();
     this.errors = new DiscoveryExceptionDictionary();
 }
 internal DiscoveryClientProtocol(HttpWebClientProtocol protocol) : base(protocol)
 {
     this.references            = new DiscoveryClientReferenceCollection();
     this.documents             = new DiscoveryClientDocumentCollection();
     this.inlinedSchemas        = new Hashtable();
     this.additionalInformation = new ArrayList();
     this.errors = new DiscoveryExceptionDictionary();
 }
Ejemplo n.º 3
0
 private void ThrowOnDiscoveryErrors(DiscoveryExceptionDictionary errors, bool fromFile)
 {
     Exception exception = null;
     foreach (DictionaryEntry entry in errors)
     {
         Exception error = (Exception)entry.Value;
         if (!(fromFile && 
               error is WebException))
         {
             exception = new InvalidOperationException(error.Message, exception);
             Trace.TraceWarning(error.Message);
         }
     }
     if (exception != null)
     {
         throw exception;
     }
 }