Example #1
0
 internal void Setup()
 {
     try
     {
         ViewModel.ProducerRestart = new RestartCommand(Restart);
         ConfigurationFactory      = new ProducerConfigurationFactory();
         //MessageHandlerFactory = new MessageHandlerFactory();
         BindAndStartRunning();
         ViewModel.ProducerErrorMessage = "Running";
     }
     catch (Exception ex)
     {
         ViewModel.ProducerErrorMessage = String.Format("Error: {0}", ex.Message);
         Dispose();
     }
 }
Example #2
0
 internal void Setup()
 {
     try
     {
         ReferenceApplicationEventSource.Log.Initialization($"{nameof(OPCUAServerProducerSimulator)}.{nameof(Setup)} starting");
         ViewModel.ProducerRestart = new RestartCommand(Restart); //TODO Remove reference of ConsumerDataManagementSetup System.Windows  #239
         ConfigurationFactory      = new ProducerConfigurationFactory();
         BindAndStartRunning();
         ViewModel.ProducerErrorMessage = "Running";
         ReferenceApplicationEventSource.Log.Initialization($" producer engine and starting sending data acomplished");
     }
     catch (Exception _ex)
     {
         ReferenceApplicationEventSource.Log.LogException(_ex);
         ViewModel.ProducerErrorMessage = "ERROR";
         Dispose();
     }
 }