1
- using System ;
1
+ #nullable enable
2
+ using System ;
2
3
using System . Collections . Generic ;
3
4
using System . IO ;
4
5
using System . Text ;
@@ -211,7 +212,7 @@ public interface ISftpClient : IBaseClient
211
212
/// <remarks>
212
213
/// Method calls made by this method to <paramref name="output" />, may under certain conditions result in exceptions thrown by the stream.
213
214
/// </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 ) ;
215
216
216
217
/// <summary>
217
218
/// Begins an asynchronous operation of retrieving list of files in remote directory.
@@ -224,7 +225,7 @@ public interface ISftpClient : IBaseClient
224
225
/// An <see cref="IAsyncResult" /> that references the asynchronous operation.
225
226
/// </returns>
226
227
/// <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 ) ;
228
229
229
230
/// <summary>
230
231
/// Begins the synchronize directories.
@@ -240,7 +241,7 @@ public interface ISftpClient : IBaseClient
240
241
/// <exception cref="ArgumentNullException"><paramref name="sourcePath"/> is <see langword="null"/>.</exception>
241
242
/// <exception cref="ArgumentException"><paramref name="destinationPath"/> is <see langword="null"/> or contains only whitespace.</exception>
242
243
/// <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 ) ;
244
245
245
246
/// <summary>
246
247
/// Begins an asynchronous uploading the stream into remote file.
@@ -316,7 +317,7 @@ public interface ISftpClient : IBaseClient
316
317
/// If the remote file already exists, it is overwritten and truncated.
317
318
/// </para>
318
319
/// </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 ) ;
320
321
321
322
/// <summary>
322
323
/// Begins an asynchronous uploading the stream into remote file.
@@ -343,7 +344,7 @@ public interface ISftpClient : IBaseClient
343
344
/// <see cref="SshException"/>.
344
345
/// </para>
345
346
/// </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 ) ;
347
348
348
349
/// <summary>
349
350
/// Changes remote directory to path.
@@ -522,7 +523,7 @@ public interface ISftpClient : IBaseClient
522
523
/// <remarks>
523
524
/// Method calls made by this method to <paramref name="output" />, may under certain conditions result in exceptions thrown by the stream.
524
525
/// </remarks>
525
- void DownloadFile ( string path , Stream output , Action < ulong > downloadCallback = null ) ;
526
+ void DownloadFile ( string path , Stream output , Action < ulong > ? downloadCallback = null ) ;
526
527
527
528
/// <summary>
528
529
/// Ends an asynchronous file downloading into the stream.
@@ -700,7 +701,7 @@ public interface ISftpClient : IBaseClient
700
701
/// <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>
701
702
/// <exception cref="SshException">A SSH error where <see cref="Exception.Message" /> is the message from the remote host.</exception>
702
703
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
703
- IEnumerable < ISftpFile > ListDirectory ( string path , Action < int > listCallback = null ) ;
704
+ IEnumerable < ISftpFile > ListDirectory ( string path , Action < int > ? listCallback = null ) ;
704
705
705
706
/// <summary>
706
707
/// Asynchronously enumerates the files in remote directory.
@@ -1006,7 +1007,7 @@ public interface ISftpClient : IBaseClient
1006
1007
/// <remarks>
1007
1008
/// Method calls made by this method to <paramref name="input" />, may under certain conditions result in exceptions thrown by the stream.
1008
1009
/// </remarks>
1009
- void UploadFile ( Stream input , string path , Action < ulong > uploadCallback = null ) ;
1010
+ void UploadFile ( Stream input , string path , Action < ulong > ? uploadCallback = null ) ;
1010
1011
1011
1012
/// <summary>
1012
1013
/// Uploads stream into remote file.
@@ -1024,7 +1025,7 @@ public interface ISftpClient : IBaseClient
1024
1025
/// <remarks>
1025
1026
/// Method calls made by this method to <paramref name="input" />, may under certain conditions result in exceptions thrown by the stream.
1026
1027
/// </remarks>
1027
- void UploadFile ( Stream input , string path , bool canOverride , Action < ulong > uploadCallback = null ) ;
1028
+ void UploadFile ( Stream input , string path , bool canOverride , Action < ulong > ? uploadCallback = null ) ;
1028
1029
1029
1030
/// <summary>
1030
1031
/// Writes the specified byte array to the specified file, and closes the file.
0 commit comments