Exemplo n.º 1
0
 public static XmlReader Create(Stream input, XmlReaderSettings settings, string baseUri)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(input, settings, baseUri));
     }
     else
     {
         return(XmlReader.Create(input, settings));//, baseUri);
     }
 }
Exemplo n.º 2
0
 public static XmlReader Create(Stream input)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(input));
     }
     else
     {
         return(XmlReader.Create(input));
     }
 }
Exemplo n.º 3
0
 public static XmlReader Create(string inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(FilePathUtil.getStream(inputUri), settings, inputContext));
     }
     else
     {
         return(XmlReader.Create(FilePathUtil.getStream(inputUri)));//, settings, inputContext);
     }
 }
Exemplo n.º 4
0
 public static XmlReader Create(string inputUri)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(FilePathUtil.getStream(inputUri)));
     }
     else
     {
         return(XmlReader.Create(FilePathUtil.getStream(inputUri)));
     }
 }
Exemplo n.º 5
0
 public static XmlReader Create(XmlReader reader, XmlReaderSettings settings)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(reader, settings));
     }
     else
     {
         return(XmlReader.Create(reader, settings));
     }
 }
Exemplo n.º 6
0
 public static XmlReader Create(TextReader input, XmlReaderSettings settings, XmlParserContext inputContext)
 {
     if (AsyncUtil.IsAsyncEnabled)
     {
         return(XmlReaderAsync.Create(input, settings, inputContext));
     }
     else
     {
         return(XmlReader.Create(input, settings, inputContext));
     }
 }