Skip to content

Commit

Permalink
Fix ObjectDisposedException in StreamContext trace output
Browse files Browse the repository at this point in the history
  • Loading branch information
viciousviper committed Dec 30, 2015
1 parent 46e533c commit cc03b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DokanCloudFS/CloudOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void Dispose()

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Debugger Display")]
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
private string DebuggerDisplay => $"{nameof(StreamContext)} {File.Name} [{Access}] [{nameof(Stream.Length)}={Stream?.Length ?? 0}] [{nameof(Task.Status)}={Task?.Status}] {nameof(IsLocked)}={IsLocked}";
private string DebuggerDisplay => $"{nameof(StreamContext)} {File.Name} [{Access}] [{nameof(Stream.Length)}={((Stream?.CanSeek ?? false) ? Stream.Length : 0)}] [{nameof(Task.Status)}={Task?.Status}] {nameof(IsLocked)}={IsLocked}";
}

private ICloudDrive drive;
Expand Down

0 comments on commit cc03b78

Please sign in to comment.