示例#1
0
        static void Main(string[] args)
        {
            Log.Logger = new LoggerConfiguration()
                         .MinimumLevel.Debug()
                         .WriteTo.File("log.txt")
                         .CreateLogger();

            Log.Information("New start with args: {args}", args);
            TicketView       ticketView       = new TicketView(args);
            TicketController ticketController = new TicketController(ticketView);

            ticketController.Run();
        }
 public TicketController(TicketView ticketView)
 {
     _ticketView = ticketView;
 }