예제 #1
0
        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);
            }
        }
예제 #2
0
 public FileRequestEventArgs(FileTunnelServerConnection connection, string filePathAndName)
 {
     Connection      = connection;
     FilePathAndName = filePathAndName;
 }