public void Push(FileTunnelServerConnection connection, string filePathAndName) { var request = new FileRequestEventArgs(connection, filePathAndName); if (File.Exists(filePathAndName)) { requestStack.Push(request); } else { FileNotFound?.Invoke(this, request); } }
public FileRequestEventArgs(FileTunnelServerConnection connection, string filePathAndName) { Connection = connection; FilePathAndName = filePathAndName; }