QfuCommandContext.cs 640 B

1234567891011121314151617181920212223242526
  1. using Quadarax.Foundation.Core.Object;
  2. using Quadarax.Foundation.Core.QConsole.Context;
  3. using System.IO.Abstractions;
  4. namespace qdr.app.tools.qfu
  5. {
  6. internal class QfuCommandContext : DisposableObject, ICommandContext
  7. {
  8. private IFileSystem? _fileSystem;
  9. public IFileSystem FileSystem => _fileSystem ?? new FileSystem();
  10. public string Status => "READY";
  11. public QfuCommandContext(IFileSystem fileSystem)
  12. {
  13. _fileSystem = fileSystem;
  14. }
  15. protected override void OnDisposing()
  16. {
  17. _fileSystem = null;
  18. }
  19. }
  20. }