1- using System ;
1+ #nullable enable
2+ using System ;
23using System . Collections . Generic ;
34using System . IO ;
45using System . Text ;
@@ -192,7 +193,7 @@ public interface ISftpClient : IBaseClient
192193 /// <remarks>
193194 /// Method calls made by this method to <paramref name="output" />, may under certain conditions result in exceptions thrown by the stream.
194195 /// </remarks>
195- IAsyncResult BeginDownloadFile ( string path , Stream output , AsyncCallback asyncCallback ) ;
196+ IAsyncResult BeginDownloadFile ( string path , Stream output , AsyncCallback ? asyncCallback ) ;
196197
197198 /// <summary>
198199 /// Begins an asynchronous file downloading into the stream.
@@ -211,7 +212,7 @@ public interface ISftpClient : IBaseClient
211212 /// <remarks>
212213 /// Method calls made by this method to <paramref name="output" />, may under certain conditions result in exceptions thrown by the stream.
213214 /// </remarks>
214- IAsyncResult BeginDownloadFile ( string path , Stream output , AsyncCallback asyncCallback , object state , Action < ulong > downloadCallback = null ) ;
215+ IAsyncResult BeginDownloadFile ( string path , Stream output , AsyncCallback ? asyncCallback , object ? state , Action < ulong > ? downloadCallback = null ) ;
215216
216217 /// <summary>
217218 /// Begins an asynchronous operation of retrieving list of files in remote directory.
@@ -224,7 +225,7 @@ public interface ISftpClient : IBaseClient
224225 /// An <see cref="IAsyncResult" /> that references the asynchronous operation.
225226 /// </returns>
226227 /// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
227- IAsyncResult BeginListDirectory ( string path , AsyncCallback asyncCallback , object state , Action < int > listCallback = null ) ;
228+ IAsyncResult BeginListDirectory ( string path , AsyncCallback ? asyncCallback , object ? state , Action < int > ? listCallback = null ) ;
228229
229230 /// <summary>
230231 /// Begins the synchronize directories.
@@ -240,7 +241,7 @@ public interface ISftpClient : IBaseClient
240241 /// <exception cref="ArgumentNullException"><paramref name="sourcePath"/> is <see langword="null"/>.</exception>
241242 /// <exception cref="ArgumentException"><paramref name="destinationPath"/> is <see langword="null"/> or contains only whitespace.</exception>
242243 /// <exception cref="SshException">If a problem occurs while copying the file.</exception>
243- IAsyncResult BeginSynchronizeDirectories ( string sourcePath , string destinationPath , string searchPattern , AsyncCallback asyncCallback , object state ) ;
244+ IAsyncResult BeginSynchronizeDirectories ( string sourcePath , string destinationPath , string searchPattern , AsyncCallback ? asyncCallback , object ? state ) ;
244245
245246 /// <summary>
246247 /// Begins an asynchronous uploading the stream into remote file.
@@ -289,7 +290,7 @@ public interface ISftpClient : IBaseClient
289290 /// If the remote file already exists, it is overwritten and truncated.
290291 /// </para>
291292 /// </remarks>
292- IAsyncResult BeginUploadFile ( Stream input , string path , AsyncCallback asyncCallback ) ;
293+ IAsyncResult BeginUploadFile ( Stream input , string path , AsyncCallback ? asyncCallback ) ;
293294
294295 /// <summary>
295296 /// Begins an asynchronous uploading the stream into remote file.
@@ -316,7 +317,7 @@ public interface ISftpClient : IBaseClient
316317 /// If the remote file already exists, it is overwritten and truncated.
317318 /// </para>
318319 /// </remarks>
319- IAsyncResult BeginUploadFile ( Stream input , string path , AsyncCallback asyncCallback , object state , Action < ulong > uploadCallback = null ) ;
320+ IAsyncResult BeginUploadFile ( Stream input , string path , AsyncCallback ? asyncCallback , object ? state , Action < ulong > ? uploadCallback = null ) ;
320321
321322 /// <summary>
322323 /// Begins an asynchronous uploading the stream into remote file.
@@ -343,7 +344,7 @@ public interface ISftpClient : IBaseClient
343344 /// <see cref="SshException"/>.
344345 /// </para>
345346 /// </remarks>
346- IAsyncResult BeginUploadFile ( Stream input , string path , bool canOverride , AsyncCallback asyncCallback , object state , Action < ulong > uploadCallback = null ) ;
347+ IAsyncResult BeginUploadFile ( Stream input , string path , bool canOverride , AsyncCallback ? asyncCallback , object ? state , Action < ulong > ? uploadCallback = null ) ;
347348
348349 /// <summary>
349350 /// Changes remote directory to path.
@@ -522,7 +523,7 @@ public interface ISftpClient : IBaseClient
522523 /// <remarks>
523524 /// Method calls made by this method to <paramref name="output" />, may under certain conditions result in exceptions thrown by the stream.
524525 /// </remarks>
525- void DownloadFile ( string path , Stream output , Action < ulong > downloadCallback = null ) ;
526+ void DownloadFile ( string path , Stream output , Action < ulong > ? downloadCallback = null ) ;
526527
527528 /// <summary>
528529 /// Ends an asynchronous file downloading into the stream.
@@ -698,7 +699,7 @@ public interface ISftpClient : IBaseClient
698699 /// <exception cref="SftpPermissionDeniedException">Permission to list the contents of the directory was denied by the remote host. <para>-or-</para> A SSH command was denied by the server.</exception>
699700 /// <exception cref="SshException">A SSH error where <see cref="Exception.Message" /> is the message from the remote host.</exception>
700701 /// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
701- IEnumerable < ISftpFile > ListDirectory ( string path , Action < int > listCallback = null ) ;
702+ IEnumerable < ISftpFile > ListDirectory ( string path , Action < int > ? listCallback = null ) ;
702703
703704 /// <summary>
704705 /// Asynchronously enumerates the files in remote directory.
@@ -1004,7 +1005,7 @@ public interface ISftpClient : IBaseClient
10041005 /// <remarks>
10051006 /// Method calls made by this method to <paramref name="input" />, may under certain conditions result in exceptions thrown by the stream.
10061007 /// </remarks>
1007- void UploadFile ( Stream input , string path , Action < ulong > uploadCallback = null ) ;
1008+ void UploadFile ( Stream input , string path , Action < ulong > ? uploadCallback = null ) ;
10081009
10091010 /// <summary>
10101011 /// Uploads stream into remote file.
@@ -1022,7 +1023,7 @@ public interface ISftpClient : IBaseClient
10221023 /// <remarks>
10231024 /// Method calls made by this method to <paramref name="input" />, may under certain conditions result in exceptions thrown by the stream.
10241025 /// </remarks>
1025- void UploadFile ( Stream input , string path , bool canOverride , Action < ulong > uploadCallback = null ) ;
1026+ void UploadFile ( Stream input , string path , bool canOverride , Action < ulong > ? uploadCallback = null ) ;
10261027
10271028 /// <summary>
10281029 /// Writes the specified byte array to the specified file, and closes the file.
0 commit comments