Ejemplo n.º 1
0
        internal static MsdtcWrapper GetWrapper(string machineName, string virtualServerName, ConfigurationProvider configProvider)
        {
            MsdtcWrapper wrapper;

            string key = GetTransactionManagerHostName(machineName, virtualServerName);
            wrappers.TryGetValue(key, out wrapper);
            if (wrapper == null)
            {
                wrapper = new MsdtcWrapper(machineName, virtualServerName, configProvider);
                wrappers.Add(key, wrapper);
            }
            return wrapper;
        }
Ejemplo n.º 2
0
        void InitializeConfig()
        {
            try
            {
                previousConfig = new WsatConfiguration(machineName, virtualServer, null, false);
                previousConfig.LoadFromRegistry();

                config = new WsatConfiguration(machineName, virtualServer, previousConfig, false);
                msdtc = config.GetMsdtcWrapper();
                ConfigurationToUI();
            }
            catch (WsatAdminException e)
            {
                HandleException(e);
            }
        }