Esempio n. 1
0
        private static void MossnerBridgeMethod()
        {
            var appPath = Application.StartupPath + "\\";
            var configLogingFileName = appPath + "Configuration\\Logging.xml";
            XmlConfigurator.Configure(new FileInfo(configLogingFileName));

            var configuration = new MossnerBridgeConfiguration();
            configuration.LoadConnectionsConfiguration(appPath + "Configuration\\Network.xml");

            bridge = new MossnerBridge(configuration);
            bridge.Initialize();

            while (bridge.IsInitialized()) {
                Thread.Sleep(1000);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="aConfiguration">Конфигурация.</param>
 public MossnerBridge(MossnerBridgeConfiguration aConfiguration)
 {
     configuration = aConfiguration;
 }