Exemplo n.º 1
0
        public ConnectionFactory(Uri connectionUri, ILoggerFactory loggerFactory)
        {
            mLoggerFactory = loggerFactory;

            mLogger = loggerFactory.CreateLogger <ConnectionFactory>();

            ValidateUri(connectionUri);

            mClamAvSettings = new ClamAvSettings(connectionUri.Host, connectionUri.Port);
        }
Exemplo n.º 2
0
 public TcpSocketClient(ClamAvSettings clamAvSettings, ILogger <TcpSocketClient> logger)
 {
     mClamAvSettings = clamAvSettings ?? throw new ArgumentNullException(nameof(clamAvSettings));
     mLogger         = logger ?? throw new ArgumentNullException(nameof(logger));
     mClient         = new TcpClient();
 }