AccessRequestArgs.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /* Copyright (C) 2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.IO;
  10. using System.Net;
  11. namespace SMBLibrary.Server
  12. {
  13. public class AccessRequestArgs : EventArgs
  14. {
  15. public string UserName;
  16. public string Path;
  17. public FileAccess RequestedAccess;
  18. public string MachineName;
  19. public IPEndPoint ClientEndPoint;
  20. public bool Allow = true;
  21. public AccessRequestArgs(string userName, string path, FileAccess requestedAccess, string machineName, IPEndPoint clientEndPoint)
  22. {
  23. UserName = userName;
  24. Path = path;
  25. RequestedAccess = requestedAccess;
  26. MachineName = machineName;
  27. ClientEndPoint = clientEndPoint;
  28. }
  29. }
  30. }