コード例 #1
0
 /// <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;
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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;
 }