Exemple #1
0
        public ResourceHelper(string name, ResourceType resourceType)
        {
            switch (resourceType)
            {
            case ResourceType.Script:
            {
                ScriptSource.Add(name, new ResourceCollection {
                        Name = name
                    });
                _source = ScriptSource[name];
                break;
            }

            case ResourceType.Style:
            {
                StyleSource.Add(name, new ResourceCollection {
                        Name = name
                    });
                _source = StyleSource[name];
                break;
            }
            }
            _resourceType = resourceType;
        }
 public ResourceCapture(ResourceCollection source, Action <ResourceCollection> onRegisted)
 {
     _resource   = source;
     _onRegisted = onRegisted;
 }
 public ResourceCapture(RazorPage page, ResourceCollection source, Action <ResourceCollection> onRegisted)
 {
     _page       = page;
     _resource   = source;
     _onRegisted = onRegisted;
 }