コード例 #1
0
        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)));
            }
        }
コード例 #2
0
 protected override Task <IFtpClientConnection> GetConnection(CancellationToken ctk = default)
 {
     return(Task.FromResult(_connectionFactory.Create(Host, Credentials)));
 }