示例#1
0
        static async Task Main()
        {
            var endpoint = "SimpleVirtualATMMachine.Client";

            Console.Title = endpoint;
            var configuration = BuildConfigurationBuilder();
            var logger        = LoggerConfiguration.CreateLogger(configuration, endpoint);

            LogManager.Use <SerilogFactory>().WithLogger(logger);
            var container = BuildContainer();

            _currentCardNumber = container.GetInstance <ICurrentCardNumber>();
            IEndpointInstance endpointInstance = await BusEndpointInstance.Learning(endpoint, container);;

            OptionScreen1(endpointInstance);
            await endpointInstance.Stop().ConfigureAwait(false);
        }
示例#2
0
 public BankCardCreatedMessageHandler(ICurrentCardNumber currentCardNumber)
 {
     _currentCardNumber = currentCardNumber;
 }