public ScriptRegistrarBuilder(ScriptRegistrar scriptRegistrar)
        {
            if (scriptRegistrar == null)
            {
                throw new ArgumentNullException(nameof(scriptRegistrar));
            }

            this.ScriptRegistrar = scriptRegistrar;
        }
        public ScriptRegistrarBuilder(ScriptRegistrar scriptRegistrar)
        {
            if (scriptRegistrar == null)
            {
                throw new ArgumentNullException(nameof(scriptRegistrar));
            }

            this.ScriptRegistrar = scriptRegistrar;
        }
Beispiel #3
0
        public MapBuilder(ViewContext viewContext)
        {
            if (viewContext == null)
            {
                throw new ArgumentNullException(nameof(viewContext));
            }

            this.ViewContext     = viewContext;
            this.scriptRegistrar = (ScriptRegistrar)viewContext.HttpContext.Items[Key] ?? new ScriptRegistrar(viewContext);
        }
        public ScriptRegistrarBuilder(ScriptRegistrar scriptRegistrar)
        {
            if (scriptRegistrar == null) throw new ArgumentNullException("scriptRegistrar");

            this.ScriptRegistrar = scriptRegistrar;
        }