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.