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); }
public BankCardCreatedMessageHandler(ICurrentCardNumber currentCardNumber) { _currentCardNumber = currentCardNumber; }