Exemplo n.º 1
0
        public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config)
        {
            base.Initialize(name, config);

            _storageRoot = config.GetAndRemove<string>("storageRoot", true);
            if (!string.IsNullOrEmpty(_storageRoot))
            {
                _storageRoot = HttpContext.Current.Server.MapPath(_storageRoot);
            }

            _js = new JavaScriptSerializer { MaxJsonLength = 41943040 };
        }
        public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config)
        {
            base.Initialize(name, config);

            _storageKey = config.GetAndRemove <string>("storageKey", true);
        }