public bool Equals(DocumentConfiguration other)
 {
     if (ReferenceEquals(null, other))
     {
         return false;
     }
     if (ReferenceEquals(this, other))
     {
         return true;
     }
     return Equals(other.DocumentType, DocumentType);
 }
Esempio n. 2
0
 public bool Equals(DocumentConfiguration other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.DocumentType, DocumentType));
 }
 /// <summary>
 /// Registers single document
 /// </summary>
 public void RegisterDocument(Type documentType)
 {
     var documentConfiguration = new DocumentConfiguration(documentType);
     DocumentConfigurations[documentType] = documentConfiguration;
 }
        /// <summary>
        /// Registers single document
        /// </summary>
        public void RegisterDocument(Type documentType)
        {
            var documentConfiguration = new DocumentConfiguration(documentType);

            DocumentConfigurations[documentType] = documentConfiguration;
        }