Ejemplo n.º 1
0
        public ResourceController(IList <ResourceAssemblyLocation> locations, IResourceCompressor compressor)
        {
            if (locations == null)
            {
                throw new ArgumentNullException("locations");
            }
            if (compressor == null)
            {
                throw new ArgumentNullException("compressor");
            }
            this.locations  = locations;
            this.compressor = compressor;

            sharedLocation = new ResourceAssemblyLocation
            {
                Assembly  = Assembly.GetAssembly(typeof(FileSystemHelper)),
                Namespace = Constants.SharedResourceNamespaceRoot
            };
        }
Ejemplo n.º 2
0
        public ResourceController(IList<ResourceAssemblyLocation> locations, IResourceCompressor compressor)
        {
            if (locations == null)
            {
                throw new ArgumentNullException("locations");
            }
            if (compressor == null)
            {
                throw new ArgumentNullException("compressor");
            }
            this.locations = locations;
            this.compressor = compressor;

            sharedLocation = new ResourceAssemblyLocation
            {
                Assembly = Assembly.GetAssembly(typeof (FileSystemHelper)),
                Namespace = Constants.SharedResourceNamespaceRoot
            };
        }