public ConsoleChatClient(ILogger <ConsoleChatClient> logger, IOptions <ClientConfig> clientConfig, IChatClientFactory clientFactory, IMessageProtocol messageProtocol, IConsoleClient consoleClient) { this.logger = logger; this.clientFactory = clientFactory; this.messageProtocol = messageProtocol; this.consoleClient = consoleClient; this.remoteUrl = clientConfig.Value.Server.Url; }
public ConsoleChatClient(ILogger <ConsoleChatClient> logger, IOptions <ClientConfig> clientConfig, IChatClientFactory clientFactory, IMessageProtocol messageProtocol, IConsoleClient consoleClient) { this.logger = logger; this.clientFactory = clientFactory; this.messageProtocol = messageProtocol; this.consoleClient = consoleClient; this.client = new TcpClient(); var serverConfig = clientConfig.Value.Server; this.serverAddress = IPAddress.Parse(serverConfig.Host); this.serverPort = serverConfig.Port; }
public static async Task Main(string[] args) { IServiceProvider serviceProvider = new ServiceCollection() .AddCopyDirectoryServices() .AddSingleton <IConsoleClient, ConsoleClient>() .AddLogging(loggerBuilder => loggerBuilder.AddConsole()) .BuildServiceProvider(); IConsoleClient client = serviceProvider.GetRequiredService <IConsoleClient>(); if (args.Length == 2) { await client.TriggerWithInitialValues(args[0], args[1]); } else { await client.Trigger(); } }
public BookFineGateway(IConsoleClient ConsoleClient) { _IConsoleClient = ConsoleClient; }
public BookGateway(IConsoleClient IConsoleClient) { _IConsoleClient = IConsoleClient; }
public StudentGateway(IConsoleClient IConsoleClient) { _IConsoleClient = IConsoleClient; }
public BookReturnGateway(IConsoleClient ConsoleClient) { _ConsoleClient = ConsoleClient; }
public DashboardService(IConsoleClient IConsoleClient) { _IConsoleClient = IConsoleClient; }
public BookIssueGateway(IConsoleClient ConsoleClient) { _ConsoleClient = ConsoleClient; }