public static void Main(string[] args) { using (var context = new ChatbotContext()) { context.Database.Migrate(); } var container = UnityHelper.Create(); var chatbotService = container.Resolve <ChatbotService>(); chatbotService.Main(); Console.ReadLine(); }