Esempio n. 1
0
        private static Dictionary <string, string> GetKeyword(string implementationNamespaceClass, string implementationAssembly)
        {
            Dictionary <string, string> keywords = KeywordFromString.GetKeyword("implementationnamespaceclass", implementationNamespaceClass);

            KeywordFromString.GetKeyword(keywords, "implementationassembly", implementationAssembly);
            return(keywords);
        }
Esempio n. 2
0
        /// <summary>
        /// Returns the relevant keyword key/values for the exception text
        /// </summary>
        /// <param name="argument">The argument that was checked for character count</param>
        /// <param name="characters">The number of characters found</param>
        /// <returns>Returns a dictionary with the keywords</returns>
        private static Dictionary <string, string> GetKeywords(string argument, int characters)
        {
            Dictionary <string, string> keywords = KeywordFromNumber.GetKeyword("characters", characters);

            KeywordFromString.GetKeyword(keywords, "argument", argument);
            return(keywords);
        }
Esempio n. 3
0
        private static Dictionary <string, string> GetKeywords(string tagName, int results)
        {
            Dictionary <string, string> keywords = KeywordFromString.GetKeyword("tagname", tagName);

            KeywordFromNumber.GetKeyword(keywords, "results", results);
            return(keywords);
        }
Esempio n. 4
0
        /// <summary>
        /// Returns the keyword dictionary representing the parameters
        /// </summary>
        /// <param name="rootName">The root name</param>
        /// <param name="rootNamespace">The root namespace</param>
        /// <returns>Returns the keyword dictionary representing the parameters</returns>
        public static Dictionary <string, string> GetKeywords(string rootName, string rootNamespace)
        {
            Dictionary <string, string> keywords = KeywordFromString.GetKeyword("documentname", rootName);

            KeywordFromString.GetKeyword(keywords, "documentnamespace", rootNamespace);
            return(keywords);
        }
Esempio n. 5
0
        private static Dictionary <string, string> GetKeywords(Type[] before, Type[] current)
        {
            StringBuilder beforeStringBuilder = new StringBuilder();

            for (int i = 0; i < before.Length; i++)
            {
                beforeStringBuilder.Append(before[i].ToString());
                if (i + 1 < before.Length)
                {
                    beforeStringBuilder.Append(", ");
                }
            }
            StringBuilder currentStringBuilder = new StringBuilder();

            for (int i = 0; i < current.Length; i++)
            {
                currentStringBuilder.Append(current[i].ToString());
                if (i + 1 < current.Length)
                {
                    currentStringBuilder.Append(", ");
                }
            }
            Dictionary <string, string> keywords = KeywordFromString.GetKeyword("before", beforeStringBuilder.ToString());

            KeywordFromString.GetKeyword(keywords, "current", currentStringBuilder.ToString());
            return(keywords);
        }
Esempio n. 6
0
        private static Dictionary <string, string> GetKeywords(X509Store store, X509FindType findType, string searchString)
        {
            Dictionary <string, string> keywords = KeywordsFromX509Store.GetKeywords(store);

            KeywordFromString.GetKeyword(keywords, "x509findtype", findType.ToString());
            KeywordFromString.GetKeyword(keywords, "searchstring", searchString);
            return(keywords);
        }
Esempio n. 7
0
        private static Dictionary <string, string> GetKeywords(IMailServerConfiguration serverConfiguration, Type inBoxImplementationType, object user)
        {
            Dictionary <string, string> keywords = KeywordFromType.GetKeyword(inBoxImplementationType);

            keywords.Add("mailaddress", serverConfiguration.ReplyAddress);
            KeywordFromString.GetKeyword(keywords, "user", user.ToString());
            return(keywords);
        }
Esempio n. 8
0
        public static Dictionary <string, string> GetKeywords(string rootName, string rootNamespace, XpathDiscriminatorConfigCollection identifierDiscriminators)
        {
            Dictionary <string, string> keywords = KeywordFromString.GetKeyword("rootname", rootName);

            KeywordFromString.GetKeyword(keywords, "rootnamespace", rootNamespace);
            StringBuilder identifierStringBuilder = new StringBuilder();

            foreach (XPathDiscriminatorConfig identifierDiscriminator in identifierDiscriminators)
            {
                identifierStringBuilder.Append("(");
                identifierStringBuilder.Append(identifierDiscriminator.XPathExpression);
                identifierStringBuilder.Append("=");
                identifierStringBuilder.Append(identifierDiscriminator.XPathExpectedResult);
                identifierStringBuilder.Append(")");
            }
            KeywordFromString.GetKeyword(keywords, "identifierdiscriminators", identifierStringBuilder.ToString());
            return(keywords);
        }
Esempio n. 9
0
 /// <summary>
 /// Constructor that takes the values string that failed the mapping and an
 /// inner exception as a more specific reason.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="innerException"></param>
 public KeyTypeMappingFailedException(string value, Exception innerException) : base(KeywordFromString.GetKeyword("value", value), innerException)
 {
 }
Esempio n. 10
0
 /// <summary>
 /// Constructor with keyword
 /// </summary>
 /// <param name="endpointKeyTypeCode">endpoint keytype as keyword</param>
 public UnknownEndpointTypeException(string endpointKeyTypeCode) : base(KeywordFromString.GetKeyword("endpointkeytypecode", endpointKeyTypeCode.ToString()))
 {
 }
Esempio n. 11
0
 public RaspMessageFaultUnexpectedRecieverInnerFaultCode(RaspMessageFault.RaspInnerFaultCode innerFaultCode) : base(KeywordFromString.GetKeyword("innerfaultcode", innerFaultCode.ToString()))
 {
 }
Esempio n. 12
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="countryCode">The country code</param>
 /// <param name="innerException">An exception to display as inner exception</param>
 public IncorrectCountryCodeException(string countryCode, Exception innerException)
     : base(new ResourceManager(typeof(dk.gov.oiosi.addressing.ErrorMessages)), KeywordFromString.GetKeyword("countrycode", countryCode), innerException)
 {
 }
Esempio n. 13
0
 /// <summary>
 /// Constructor with keyword
 /// </summary>
 /// <param name="endpointKeyTypeCode">endpoint keytype as keyword</param>
 public UnknownKeyTypeValueException(string endpointKeyTypeCode) : base(KeywordFromString.GetKeyword("KeyType", endpointKeyTypeCode.ToString()))
 {
 }
Esempio n. 14
0
 /// <summary>
 /// NoElementsFoundException constructor
 /// </summary>
 /// <param name="tagName"></param>
 public NoElementsFoundException(string tagName) : base(KeywordFromString.GetKeyword("tagname", tagName))
 {
 }
Esempio n. 15
0
 /// <summary>
 /// Exception that takes the missing elements name and the inner exception as parameter.
 /// </summary>
 /// <param name="missingElement"></param>
 /// <param name="innerException"></param>
 public MissingStackElementException(string missingElement, Exception innerException) : base(KeywordFromString.GetKeyword("element", missingElement), innerException)
 {
 }
Esempio n. 16
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="argument">Name of the argument that was null or empty</param>
 public NullOrEmptyArgumentException(string argument) : base(KeywordFromString.GetKeyword("argument", argument))
 {
 }
Esempio n. 17
0
 /// <summary>
 /// Constuctor with the lookuptype attempted to load
 /// </summary>
 /// <param name="lookupType">attempted load lookuptype</param>
 public FailedToLoadLookupTypeException(string lookupType) : base(KeywordFromString.GetKeyword("lookuptype", lookupType))
 {
 }
Esempio n. 18
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="certificateSubject">The certificate subject</param>
 public SignatureValidationProofIsCompletedException(string certificateSubject) : base(KeywordFromString.GetKeyword("certificatesubject", certificateSubject))
 {
 }
Esempio n. 19
0
 /// <summary>
 /// UnsupportedChannelTypeException constructor
 /// </summary>
 /// <param name="type"></param>
 public UnsupportedChannelTypeException(Type type) : base(KeywordFromString.GetKeyword("ChannelType", type.ToString()))
 {
 }
Esempio n. 20
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="schematronResult">The schematron result</param>
 /// <param name="firstErrorMessage">The first error message</param>
 public SchematronErrorException(XmlDocument schematronResult, string firstErrorMessage) : base(KeywordFromString.GetKeyword("schematronerror", firstErrorMessage))
 {
     _schematronResult = schematronResult;
 }
Esempio n. 21
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="DocumentName"></param>
 public RaspDocumentAllreadyAddedException(string DocumentName) :
     base(KeywordFromString.GetKeyword("DocumentName", DocumentName))
 {
 }
Esempio n. 22
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="faultCode">The fault code</param>
 public OiosiMessageFaultUnexpectedFaultCode(OiosiFaultCode faultCode) :
     base(KeywordFromString.GetKeyword("faultcode", faultCode.ToString()))
 {
 }
Esempio n. 23
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="ovtNumber">The invalid OVT number</param>
 /// <param name="innerException">The inner exception from the OVT check</param>
 public IncorrectOvtNumberException(string ovtNumber, Exception innerException)
     : base(new ResourceManager(typeof(dk.gov.oiosi.addressing.ErrorMessages)), KeywordFromString.GetKeyword("ovtnumber", ovtNumber), innerException)
 {
 }
Esempio n. 24
0
        private static Dictionary <string, string> GetKeywords(ServiceHostBase currentServiceHost)
        {
            string currentServiceHostName = currentServiceHost.Description.Name;

            return(KeywordFromString.GetKeyword("currentservicehostname", currentServiceHostName));
        }
Esempio n. 25
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="type">The assembly qualified name of the type that could not be loaded</param>
 public CouldNotLoadTypeException(string type) :
     base(KeywordFromString.GetKeyword("type", type))
 {
 }
Esempio n. 26
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="faultCode">The fault code</param>
 public RaspMessageFaultUnexpectedFaultCode(RaspMessageFault.RaspFaultCode faultCode) :
     base(KeywordFromString.GetKeyword("faultcode", faultCode.ToString()))
 {
 }
Esempio n. 27
0
 /// <summary>
 /// Constuctor that takes the user and the inner exception as parameters.
 /// The user is the one attempted to use when stopping to use an inbox. The
 /// inner exception is the reason why it failed.
 /// </summary>
 /// <param name="user">The user used</param>
 /// <param name="innerException">The exception caught</param>
 public FailedToStopUsingInboxException(object user, Exception innerException) : base(KeywordFromString.GetKeyword("user", user.ToString()), innerException)
 {
 }
Esempio n. 28
0
 public IncorrectBusinessIdentifierException(string businessIdentifier)
     : base(new ResourceManager(typeof(dk.gov.oiosi.addressing.ErrorMessages)), KeywordFromString.GetKeyword("businessidentifier", businessIdentifier))
 {
 }
Esempio n. 29
0
 /// <summary>
 /// Constructor
 /// </summary>
 public UddiWrongGuidFormatException(string Guid, System.Exception innerException)
     :
     base(KeywordFromString.GetKeyword("Guid", Guid), innerException)
 {
 }