@@ -30,13 +30,13 @@ public VirtualFile(string path, VirtualEngine engine, ILogger logger) : base(pat
3030 /// <inheritdoc/>
3131 public async Task OpenAsync ( IOperationContext operationContext , IResultContext context )
3232 {
33- Logger . LogMessage ( $ "{ nameof ( IFile ) } .{ nameof ( OpenAsync ) } ()", UserFileSystemPath ) ;
33+ Logger . LogMessage ( $ "{ nameof ( IFile ) } .{ nameof ( OpenAsync ) } ()", UserFileSystemPath , default , operationContext ) ;
3434 }
3535
3636 /// <inheritdoc/>
3737 public async Task CloseAsync ( IOperationContext operationContext , IResultContext context )
3838 {
39- Logger . LogMessage ( $ "{ nameof ( IFile ) } .{ nameof ( CloseAsync ) } ()", UserFileSystemPath ) ;
39+ Logger . LogMessage ( $ "{ nameof ( IFile ) } .{ nameof ( CloseAsync ) } ()", UserFileSystemPath , default , operationContext ) ;
4040 }
4141
4242 /// <inheritdoc/>
@@ -45,7 +45,7 @@ public async Task ReadAsync(Stream output, long offset, long length, ITransferD
4545 // On Windows this method has a 60 sec timeout.
4646 // To process longer requests and reset the timout timer call the resultContext.ReportProgress() or resultContext.ReturnData() method.
4747
48- Logger . LogMessage ( $ "{ nameof ( IFile ) } .{ nameof ( ReadAsync ) } ({ offset } , { length } )", UserFileSystemPath ) ;
48+ Logger . LogMessage ( $ "{ nameof ( IFile ) } .{ nameof ( ReadAsync ) } ({ offset } , { length } )", UserFileSystemPath , default , operationContext ) ;
4949
5050 SimulateNetworkDelay ( length , resultContext ) ;
5151
@@ -63,7 +63,7 @@ public async Task ValidateDataAsync(long offset, long length, IValidateDataOpera
6363 // This method has a 60 sec timeout.
6464 // To process longer requests and reset the timout timer call the ReturnValidationResult() method or IContextWindows.ReportProgress() method.
6565
66- Logger . LogMessage ( $ "{ nameof ( IFile ) } .{ nameof ( ValidateDataAsync ) } ({ offset } , { length } )", UserFileSystemPath ) ;
66+ Logger . LogMessage ( $ "{ nameof ( IFile ) } .{ nameof ( ValidateDataAsync ) } ({ offset } , { length } )", UserFileSystemPath , default , operationContext ) ;
6767
6868 //SimulateNetworkDelay(length, resultContext);
6969
@@ -73,14 +73,14 @@ public async Task ValidateDataAsync(long offset, long length, IValidateDataOpera
7373 }
7474
7575 /// <inheritdoc/>
76- public async Task WriteAsync ( IFileMetadata fileMetadata , Stream content = null )
76+ public async Task WriteAsync ( IFileMetadata fileMetadata , Stream content = null , IOperationContext operationContext = null )
7777 {
7878 if ( MsOfficeHelper . IsMsOfficeLocked ( UserFileSystemPath ) ) // Required for PowerPoint. It does not block the for writing.
7979 {
8080 throw new ClientLockFailedException ( "The file is blocked for writing." ) ;
8181 }
8282
83- Logger . LogMessage ( $ "{ nameof ( IFile ) } .{ nameof ( WriteAsync ) } ()", UserFileSystemPath ) ;
83+ Logger . LogMessage ( $ "{ nameof ( IFile ) } .{ nameof ( WriteAsync ) } ()", UserFileSystemPath , default , operationContext ) ;
8484
8585 ExternalDataManager customDataManager = Engine . CustomDataManager ( UserFileSystemPath ) ;
8686 // Send the ETag to the server as part of the update to ensure the file in the remote storge is not modified since last read.
0 commit comments