Ejemplo n.º 1
0
        private static void LoadRSConfigProvider(string shellId, string initializationParameters)
        {
            ConfigurationDataFromXML mxml = ConfigurationDataFromXML.Create(initializationParameters);
            Type type = LoadAndAnalyzeAssembly(shellId, mxml.ApplicationBase, mxml.AssemblyName, mxml.EndPointConfigurationTypeName);

            mxml.EndPointConfigurationType = type;
            lock (syncObject)
            {
                if (!ssnStateProviders.ContainsKey(initializationParameters))
                {
                    ssnStateProviders.Add(initializationParameters, mxml);
                }
            }
        }
Ejemplo n.º 2
0
        private static void LoadRSConfigProvider(string shellId, string initializationParameters)
        {
            ConfigurationDataFromXML configurationDataFromXml = ConfigurationDataFromXML.Create(initializationParameters);
            Type type = PSSessionConfiguration.LoadAndAnalyzeAssembly(shellId, configurationDataFromXml.ApplicationBase, configurationDataFromXml.AssemblyName, configurationDataFromXml.EndPointConfigurationTypeName);

            configurationDataFromXml.EndPointConfigurationType = type;
            lock (PSSessionConfiguration.syncObject)
            {
                if (PSSessionConfiguration.ssnStateProviders.ContainsKey(initializationParameters))
                {
                    return;
                }
                PSSessionConfiguration.ssnStateProviders.Add(initializationParameters, configurationDataFromXml);
            }
        }