/// <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); }
internal Cleaner(InProcUploadStateStoreProvider provider) { Provider = provider; Application = HttpContext.Current.Application; }
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); }