コード例 #1
0
ファイル: ResourceController.cs プロジェクト: jalex/Swarm
        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
            };
        }
コード例 #2
0
ファイル: ResourceController.cs プロジェクト: bevacqua/Swarm
        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
            };
        }