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 ;
@@ -192,7 +193,7 @@ public interface ISftpClient : IBaseClient
192
193
/// <remarks>
193
194
/// Method calls made by this method to <paramref name="output" />, may under certain conditions result in exceptions thrown by the stream.
194
195
/// </remarks>
195
- IAsyncResult BeginDownloadFile ( string path , Stream output , AsyncCallback asyncCallback ) ;
196
+ IAsyncResult BeginDownloadFile ( string path , Stream output , AsyncCallback ? asyncCallback ) ;
196
197
197
198
/// <summary>
198
199
/// Begins an asynchronous file downloading into the stream.
@@ -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.
@@ -289,7 +290,7 @@ public interface ISftpClient : IBaseClient
289
290
/// If the remote file already exists, it is overwritten and truncated.
290
291
/// </para>
291
292
/// </remarks>
292
- IAsyncResult BeginUploadFile ( Stream input , string path , AsyncCallback asyncCallback ) ;
293
+ IAsyncResult BeginUploadFile ( Stream input , string path , AsyncCallback ? asyncCallback ) ;
293
294
294
295
/// <summary>
295
296
/// 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.
@@ -698,7 +699,7 @@ public interface ISftpClient : IBaseClient
698
699
/// <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>
699
700
/// <exception cref="SshException">A SSH error where <see cref="Exception.Message" /> is the message from the remote host.</exception>
700
701
/// <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 ) ;
702
703
703
704
/// <summary>
704
705
/// Asynchronously enumerates the files in remote directory.
@@ -1004,7 +1005,7 @@ public interface ISftpClient : IBaseClient
1004
1005
/// <remarks>
1005
1006
/// Method calls made by this method to <paramref name="input" />, may under certain conditions result in exceptions thrown by the stream.
1006
1007
/// </remarks>
1007
- void UploadFile ( Stream input , string path , Action < ulong > uploadCallback = null ) ;
1008
+ void UploadFile ( Stream input , string path , Action < ulong > ? uploadCallback = null ) ;
1008
1009
1009
1010
/// <summary>
1010
1011
/// Uploads stream into remote file.
@@ -1022,7 +1023,7 @@ public interface ISftpClient : IBaseClient
1022
1023
/// <remarks>
1023
1024
/// Method calls made by this method to <paramref name="input" />, may under certain conditions result in exceptions thrown by the stream.
1024
1025
/// </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 ) ;
1026
1027
1027
1028
/// <summary>
1028
1029
/// Writes the specified byte array to the specified file, and closes the file.
0 commit comments