blob: 38f7539b2058f5d1eefc3fbf7779f0718237c0c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Console.Network;
namespace Tango.FSE.Common.Console
{
/// <summary>
/// Represents a remote machine PPC command prompt console capabilities provider.
/// </summary>
public interface IConsolProvider
{
/// <summary>
/// Occurs when the provider has initialized and the available.
/// </summary>
event EventHandler<GetCurrentDirectoryResponse> Initialized;
/// <summary>
/// Gets the current remote directory.
/// </summary>
String CurrentDirectory { get; }
/// <summary>
/// Executes the specified command on the remote machine PPC.
/// </summary>
/// <param name="request">The command request.</param>
/// <param name="timeout">The command timeout.</param>
/// <returns></returns>
Task<ConsoleCommandResponse> ExecuteCommand(ConsoleCommandRequest request, TimeSpan? timeout = null);
}
}
|