Ejemplo n.º 1
0
 public override void WriteXmlnsAttribute(string prefix, string ns)
 {
     _writer.WriteXmlnsAttribute(prefix, ns);
     _signingWriter.WriteXmlnsAttribute(prefix, ns);
 }
Ejemplo n.º 2
0
            public void Sign(XmlCanonicalWriter signingWriter)
            {
                int nsCount = this.nsCount;
                Fx.Assert(nsCount >= 1 && namespaces[0].Prefix.Length == 0 && namespaces[0].Uri.Length == 0, "");
                for (int i = 1; i < nsCount; i++)
                {
                    Namespace nameSpace = namespaces[i];

                    bool found = false;
                    for (int j = i + 1; j < nsCount && !found; j++)
                    {
                        found = (nameSpace.Prefix == namespaces[j].Prefix);
                    }

                    if (!found)
                    {
                        signingWriter.WriteXmlnsAttribute(nameSpace.Prefix, nameSpace.Uri);
                    }
                }
            }
Ejemplo n.º 3
0
 public override void WriteXmlnsAttribute(string?prefix, string ns)
 {
     Debug.Assert(prefix != null);
     _writer.WriteXmlnsAttribute(prefix, ns);
     _signingWriter.WriteXmlnsAttribute(prefix, ns);
 }
 public void Sign(XmlCanonicalWriter signingWriter)
 {
     int nsCount = this.nsCount;
     for (int i = 1; i < nsCount; i++)
     {
         Namespace namespace2 = this.namespaces[i];
         bool flag = false;
         for (int j = i + 1; (j < nsCount) && !flag; j++)
         {
             flag = namespace2.Prefix == this.namespaces[j].Prefix;
         }
         if (!flag)
         {
             signingWriter.WriteXmlnsAttribute(namespace2.Prefix, namespace2.Uri);
         }
     }
 }