Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Multiple access to embedded resources inside a .net assembly

$
0
0

I developed a .net assembly that uses embedded resources(xsd and xslt files) to validate and transform XML files.

The embedded resources are accesed using streams with: assembly.GetManifestResourceStream() The resources are only read not written.

Here is the code I use to access these embedded resources: 

Assembly myAssembly =Assembly.GetExecutingAssembly();using(Stream schemaStream = myAssembly.GetManifestResourceStream(resourceName)){using(XmlReader schemaReader =XmlReader.Create(schemaStream)){
    settings.Schemas.Add(null, schemaReader);}}

I want to use this assembly with a .NET web service but I have a very big fear: 

If a lot of users hit the web service, a lot of users are going to access these embedded resources at the same time. I don´t know if a embedded resource can support acces by multiple readers. 

Can embeded resources be accesed by multiple users(readers) in this way? 

Thanks in advance for your help. 


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>