Exemple #1
0
        private void SetDriveQualifiedVariableValue(object value)
        {
            SessionStateProviderBase provider = GetSessionStateProvider(VariablePath);

            if (provider != null)
            {
                var path = new Path(VariablePath.GetUnqualifiedUserPath());
                provider.SetSessionStateItem(path, value, false);
            }
        }
Exemple #2
0
        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));
        }
Exemple #3
0
 internal SessionStateContentReader(SessionStateProviderBase provider, Path path)
 {
     _provider = provider;
     _path     = path;
 }