private void SetDriveQualifiedVariableValue(object value) { SessionStateProviderBase provider = GetSessionStateProvider(VariablePath); if (provider != null) { var path = new Path(VariablePath.GetUnqualifiedUserPath()); provider.SetSessionStateItem(path, value, false); } }
private object GetDriveQualifiedVariableValue() { SessionStateProviderBase provider = GetSessionStateProvider(VariablePath); if (provider == null) { return(null); } var path = new Path(VariablePath.GetUnqualifiedUserPath()); object item = provider.GetSessionStateItem(path); return(item == null ? null : provider.GetValueOfItem(item)); }
internal SessionStateContentReader(SessionStateProviderBase provider, Path path) { _provider = provider; _path = path; }