/// <summary>
 /// Initialize this object using the name and attributes.  The name and attributes are
 /// passed to the <see cref="SessionBasedUploadStateStoreProvider"/> that this provider uses
 /// if the session state mode is something other than Off or InProc.
 /// </summary>
 /// <param name="name">
 /// A <see cref="System.String"/> to be passed to the <see cref="SessionBasedUploadStateStoreProvider.Initialize"/>
 /// </param>
 /// <param name="attrs">
 /// A <see cref="System.Collections.Specialized.NameValueCollection"/> to be passed to the <see cref="SessionBasedUploadStateStoreProvider.Initialize"/>
 /// </param>
 public override void Initialize(string name, System.Collections.Specialized.NameValueCollection attrs)
 {
     base.Initialize(name, attrs);
     InProcProvider       = new InProcUploadStateStoreProvider();
     SessionBasedProvider = new SessionBasedUploadStateStoreProvider();
     SessionBasedProvider.Initialize(name, attrs);
 }
예제 #2
0
 internal Cleaner(SessionBasedUploadStateStoreProvider provider)
 {
     HandlerUri          = GetHandlerUri(HttpContext.Current.Request.Url, provider.HandlerUrl);
     Cookies             = HttpContext.Current.Request.Cookies;
     EncryptionKey       = Config.Current.EncryptionKey;
     ValidationKey       = Config.Current.ValidationKey;
     EncryptionAlgorithm = Config.Current.EncryptionAlgorithm;
     ValidationAlgorithm = Config.Current.ValidationAlgorithm;
 }
 public override void Initialize(string name, System.Collections.Specialized.NameValueCollection attrs)
 {
     base.Initialize(name, attrs);
     InProcProvider = new InProcUploadStateStoreProvider();
     SessionBasedProvider = new SessionBasedUploadStateStoreProvider();
     SessionBasedProvider.Initialize(name, attrs);
 }
 internal Cleaner(SessionBasedUploadStateStoreProvider provider)
 {
     UriBuilder handlerUriBuilder = new UriBuilder(HttpContext.Current.Request.Url);
     handlerUriBuilder.Path = HttpContext.Current.Response.ApplyAppPathModifier(provider.HandlerUrl);
     HandlerUri = handlerUriBuilder.Uri;
     Cookies = HttpContext.Current.Request.Cookies;
     EncryptionKey = Config.Current.EncryptionKey;
     ValidationKey = Config.Current.ValidationKey;
 }