Exemple #1
0
 public void Dispose()
 {
     if (_prj != null)
     {
         _prj.Stop();
         _prj.Dispose();
         _prj = null;
     }
 }
Exemple #2
0
        public void Start(Dictionary<string, string> config, Enkata.HostInfrastructure.Messaging.IMessageTransmitter<ActivityTrackerContracts.Messages.EventMessage> messageService)
        {
            _messageService = messageService;

            _logger.Info("Start method called");

            try
            {
                _prj = new Monroe.Project.Monroe();
                _act = new Activities(_messageService, _prj);

            }
            catch (Exception e)
            {
                string _exc = "Exception happend during creation of SHP, WorkUnit or Attributes instances: " + e.Message;
                _logger.Info(_exc);

            }
            _prj.Start();
        }