Beispiel #1
0
 private void Start()
 {
     try
     {
         _initialisor = new Initialisor(_bus, _eventProcessorBus);
         _initialisor.Initialize();
     }
     catch (Exception ex)
     {
         Logger.LogException(ex, "Initialisor failed to start correctly for Media Service.");
         ExceptionlessClient.Default.SubmitLog("Media service did not start correctly.");
         throw;
     }
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            Logger.LogMessage("Starting Tinamous Media Service.");

            IBus bus = CreateBus();
            // Second bus for event processing
            IBus eventProcessorBus = CreateBus();

            using (var initialisor = new Initialisor(bus, eventProcessorBus))
            {
                initialisor.Initialize();

                Console.WriteLine("Press enter to exit.");
                Console.ReadLine();
            }

            bus.Dispose();
            eventProcessorBus.Dispose();
        }