protected override Task <IFtpClientConnection> GetConnection(CancellationToken ctk = default) { if (Uri == null) { #pragma warning disable CS0618 // Type or member is obsolete return(Task.FromResult(_connectionFactory.Create(Host, Credentials))); #pragma warning restore CS0618 // Type or member is obsolete } else { return(Task.FromResult(_connectionFactory.Create(FtpConfig))); } }
protected override Task <IFtpClientConnection> GetConnection(CancellationToken ctk = default) { return(Task.FromResult(_connectionFactory.Create(Host, Credentials))); }