当前位置: 首页>>代码示例>>C#>>正文


C# IXmlDictionary类代码示例

本文整理汇总了C#中IXmlDictionary的典型用法代码示例。如果您正苦于以下问题:C# IXmlDictionary类的具体用法?C# IXmlDictionary怎么用?C# IXmlDictionary使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IXmlDictionary类属于命名空间,在下文中一共展示了IXmlDictionary类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PopulateDictionary

        // Interface to plug in external Dictionaries. The external
        // dictionary should already be populated with all strings 
        // required by this assembly.
        public void PopulateDictionary(IXmlDictionary dictionary)
        {
            if (dictionary == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary");

            this.dictionaryManager = new DictionaryManager(dictionary);
        }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:10,代码来源:SamlSerializer.cs

示例2: GetValue

        public string GetValue(IXmlDictionary staticDictionary, XmlBinaryReaderSession readerSession)
        {
            int id = this.DictionaryId / 2;
            XmlDictionaryString dicString = XmlDictionaryString.Empty;
            bool found;
            if (this.IsSession)
            {
                if (readerSession == null)
                {
                    return null;
                }

                found = readerSession.TryLookup(id, out dicString);
            }
            else
            {
                if (staticDictionary == null)
                {
                    return null;
                }

                found = staticDictionary.TryLookup(id, out dicString);
            }

            if (found)
            {
                return dicString.Value;
            }
            else
            {
                throw new ArgumentException("Cannot find value for dictionary string with ID = " + this.DictionaryId);
            }
        }
开发者ID:GusLab,项目名称:WCFSamples,代码行数:33,代码来源:XmlBinaryElements.cs

示例3: ExclusiveC14NDictionary

 public ExclusiveC14NDictionary(IXmlDictionary dictionary)
 {
     this.Namespace = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/10/xml-exc-c14n#");
     this.PrefixList = this.LookupDictionaryString(dictionary, "PrefixList");
     this.InclusiveNamespaces = this.LookupDictionaryString(dictionary, "InclusiveNamespaces");
     this.Prefix = this.LookupDictionaryString(dictionary, "ec");
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:7,代码来源:ExclusiveC14NDictionary.cs

示例4: XmlSignatureDictionary

 public XmlSignatureDictionary(IXmlDictionary dictionary)
 {
     this.Algorithm = this.LookupDictionaryString(dictionary, "Algorithm");
     this.URI = this.LookupDictionaryString(dictionary, "URI");
     this.Reference = this.LookupDictionaryString(dictionary, "Reference");
     this.Transforms = this.LookupDictionaryString(dictionary, "Transforms");
     this.Transform = this.LookupDictionaryString(dictionary, "Transform");
     this.DigestMethod = this.LookupDictionaryString(dictionary, "DigestMethod");
     this.DigestValue = this.LookupDictionaryString(dictionary, "DigestValue");
     this.Namespace = this.LookupDictionaryString(dictionary, "http://www.w3.org/2000/09/xmldsig#");
     this.EnvelopedSignature = this.LookupDictionaryString(dictionary, "http://www.w3.org/2000/09/xmldsig#enveloped-signature");
     this.KeyInfo = this.LookupDictionaryString(dictionary, "KeyInfo");
     this.Signature = this.LookupDictionaryString(dictionary, "Signature");
     this.SignedInfo = this.LookupDictionaryString(dictionary, "SignedInfo");
     this.CanonicalizationMethod = this.LookupDictionaryString(dictionary, "CanonicalizationMethod");
     this.SignatureMethod = this.LookupDictionaryString(dictionary, "SignatureMethod");
     this.SignatureValue = this.LookupDictionaryString(dictionary, "SignatureValue");
     this.KeyName = this.LookupDictionaryString(dictionary, "KeyName");
     this.Type = this.LookupDictionaryString(dictionary, "Type");
     this.MgmtData = this.LookupDictionaryString(dictionary, "MgmtData");
     this.Prefix = this.LookupDictionaryString(dictionary, "");
     this.KeyValue = this.LookupDictionaryString(dictionary, "KeyValue");
     this.RsaKeyValue = this.LookupDictionaryString(dictionary, "RSAKeyValue");
     this.Modulus = this.LookupDictionaryString(dictionary, "Modulus");
     this.Exponent = this.LookupDictionaryString(dictionary, "Exponent");
     this.X509Data = this.LookupDictionaryString(dictionary, "X509Data");
     this.X509IssuerSerial = this.LookupDictionaryString(dictionary, "X509IssuerSerial");
     this.X509IssuerName = this.LookupDictionaryString(dictionary, "X509IssuerName");
     this.X509SerialNumber = this.LookupDictionaryString(dictionary, "X509SerialNumber");
     this.X509Certificate = this.LookupDictionaryString(dictionary, "X509Certificate");
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:31,代码来源:XmlSignatureDictionary.cs

示例5: CreateBinaryWriter

		public static XmlDictionaryWriter CreateBinaryWriter (
			Stream stream, IXmlDictionary dictionary,
			XmlBinaryWriterSession session, bool ownsStream)
		{
			return new XmlBinaryDictionaryWriter (stream,
				dictionary, session, ownsStream);
		}
开发者ID:nlhepler,项目名称:mono,代码行数:7,代码来源:XmlDictionaryWriter.cs

示例6: SecurityAlgorithmDictionary

 public SecurityAlgorithmDictionary(IXmlDictionary dictionary)
 {
     this.Aes128Encryption = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#aes128-cbc");
     this.Aes128KeyWrap = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#kw-aes128");
     this.Aes192Encryption = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#aes192-cbc");
     this.Aes192KeyWrap = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#kw-aes192");
     this.Aes256Encryption = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#aes256-cbc");
     this.Aes256KeyWrap = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#kw-aes256");
     this.DesEncryption = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#des-cbc");
     this.DsaSha1Signature = this.LookupDictionaryString(dictionary, "http://www.w3.org/2000/09/xmldsig#dsa-sha1");
     this.ExclusiveC14n = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/10/xml-exc-c14n#");
     this.ExclusiveC14nWithComments = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/10/xml-exc-c14n#WithComments");
     this.HmacSha1Signature = this.LookupDictionaryString(dictionary, "http://www.w3.org/2000/09/xmldsig#hmac-sha1");
     this.HmacSha256Signature = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmldsig-more#hmac-sha256");
     this.Psha1KeyDerivation = this.LookupDictionaryString(dictionary, "http://schemas.xmlsoap.org/ws/2005/02/sc/dk/p_sha1");
     this.Ripemd160Digest = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#ripemd160");
     this.RsaOaepKeyWrap = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p");
     this.RsaSha1Signature = this.LookupDictionaryString(dictionary, "http://www.w3.org/2000/09/xmldsig#rsa-sha1");
     this.RsaSha256Signature = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256");
     this.RsaV15KeyWrap = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#rsa-1_5");
     this.Sha1Digest = this.LookupDictionaryString(dictionary, "http://www.w3.org/2000/09/xmldsig#sha1");
     this.Sha256Digest = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#sha256");
     this.Sha512Digest = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#sha512");
     this.TripleDesEncryption = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#tripledes-cbc");
     this.TripleDesKeyWrap = this.LookupDictionaryString(dictionary, "http://www.w3.org/2001/04/xmlenc#kw-tripledes");
     this.TlsSspiKeyWrap = this.LookupDictionaryString(dictionary, "http://schemas.xmlsoap.org/2005/02/trust/tlsnego#TLS_Wrap");
     this.WindowsSspiKeyWrap = this.LookupDictionaryString(dictionary, "http://schemas.xmlsoap.org/2005/02/trust/spnego#GSS_Wrap");
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:28,代码来源:SecurityAlgorithmDictionary.cs

示例7: SamlDelegatingWriter

        public SamlDelegatingWriter(XmlDictionaryWriter innerWriter, Stream canonicalStream, ICanonicalWriterEndRootElementCallback callback, IXmlDictionary dictionary)
        {
            if (innerWriter == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("innerWriter");

            if (canonicalStream == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("canonicalStream");

            if (callback == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("callback");

            if (dictionary == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dictionary");

            this.innerWriter = innerWriter;
            this.canonicalStream = canonicalStream;
            this.callback = callback;
            this.dictionary = dictionary;
            this.elementCount = 0;

            this.startFragment = new MemoryStream();
            this.signatureFragment = new MemoryStream();
            this.endFragment = new MemoryStream();
            this.writerStream = new MemoryStream();

            this.effectiveWriter = XmlDictionaryWriter.CreateBinaryWriter(this.writerStream, this.dictionary);
            this.effectiveWriter.StartCanonicalization(this.canonicalStream, false, null);
            ((IFragmentCapableXmlDictionaryWriter)this.effectiveWriter).StartFragment(this.startFragment, false);
        }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:29,代码来源:SamlDelegatingWriter.cs

示例8: LookupDictionaryString

 private XmlDictionaryString LookupDictionaryString(IXmlDictionary dictionary, string value)
 {
     XmlDictionaryString str;
     if (!dictionary.TryLookup(value, out str))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(System.IdentityModel.SR.GetString("XDCannotFindValueInDictionaryString", new object[] { value }));
     }
     return str;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:9,代码来源:ExclusiveC14NDictionary.cs

示例9: UtilityDictionary

 public UtilityDictionary(IXmlDictionary dictionary)
 {
     this.IdAttribute = this.LookupDictionaryString(dictionary, "Id");
     this.Namespace = this.LookupDictionaryString(dictionary, "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd");
     this.Timestamp = this.LookupDictionaryString(dictionary, "Timestamp");
     this.CreatedElement = this.LookupDictionaryString(dictionary, "Created");
     this.ExpiresElement = this.LookupDictionaryString(dictionary, "Expires");
     this.Prefix = this.LookupDictionaryString(dictionary, "u");
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:9,代码来源:UtilityDictionary.cs

示例10: DictionaryManager

 public DictionaryManager(IXmlDictionary parentDictionary)
 {
     this.samlDictionary = new System.IdentityModel.SamlDictionary(parentDictionary);
     this.sigantureDictionary = new System.IdentityModel.XmlSignatureDictionary(parentDictionary);
     this.utilityDictionary = new System.IdentityModel.UtilityDictionary(parentDictionary);
     this.exclusiveC14NDictionary = new System.IdentityModel.ExclusiveC14NDictionary(parentDictionary);
     this.securityAlgorithmDictionary = new System.IdentityModel.SecurityAlgorithmDictionary(parentDictionary);
     this.parentDictionary = parentDictionary;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:9,代码来源:DictionaryManager.cs

示例11: SetBuffer

 public void SetBuffer(Stream stream, IXmlDictionary dictionary, XmlBinaryReaderSession session)
 {
     if (streamBuffer == null)
     {
         streamBuffer = new byte[128];
     }
     SetBuffer(stream, streamBuffer, 0, 0, dictionary, session);
     this.windowOffset = 0;
     this.windowOffsetMax = streamBuffer.Length;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:10,代码来源:XmlBufferReader.cs

示例12: CreateBinaryReader

 public static XmlDictionaryReader CreateBinaryReader(byte[] buffer, int offset, int count,
                                                      IXmlDictionary dictionary,
                                                      XmlDictionaryReaderQuotas quotas,
                                                      XmlBinaryReaderSession session,
                                                      OnXmlDictionaryReaderClose onClose)
 {
     XmlBinaryReader reader = new XmlBinaryReader();
     reader.SetInput(buffer, offset, count, dictionary, quotas, session, onClose);
     return reader;
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:10,代码来源:XmlDictionaryReader.cs

示例13: SetOutput

 public void SetOutput(Stream stream, IXmlDictionary dictionary, XmlBinaryWriterSession session, bool ownsStream)
 {
     this.dictionary = dictionary;
     this.session = session;
     this.inAttribute = false;
     this.inList = false;
     this.attributeValue.Clear();
     this.textNodeOffset = -1;
     base.SetOutput(stream, ownsStream, null);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:10,代码来源:XmlBinaryNodeWriter.cs

示例14: SetOutput

 public void SetOutput(Stream stream, IXmlDictionary dictionary, XmlBinaryWriterSession session, bool ownsStream)
 {
     _dictionary = dictionary;
     _session = session;
     _inAttribute = false;
     _inList = false;
     _attributeValue.Clear();
     _textNodeOffset = -1;
     SetOutput(stream, ownsStream, null);
 }
开发者ID:chcosta,项目名称:corefx,代码行数:10,代码来源:XmlBinaryWriter.cs

示例15: SetInput

 public void SetInput(Stream stream,
                      IXmlDictionary dictionary,
                     XmlDictionaryReaderQuotas quotas,
                     XmlBinaryReaderSession session)
 {
     if (stream == null)
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("stream");
     MoveToInitial(quotas, session, null);
     BufferReader.SetBuffer(stream, dictionary, session);
     _buffered = false;
 }
开发者ID:ChuangYang,项目名称:corefx,代码行数:11,代码来源:XmlBinaryReader.cs


注:本文中的IXmlDictionary类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。