PageRenderTime 60ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/Overthere/Interfaces/IRemoteConsoleService.cs

https://bitbucket.org/floAr/personal
C# | 36 lines | 34 code | 2 blank | 0 comment | 0 complexity | 9daec4cc2988abb8ead1eeb36fec2ec9 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ServiceModel;
  6. using System.IO;
  7. using System.Windows.Input;
  8. namespace RemoteConsole
  9. {
  10. [ServiceContract(
  11. Namespace="http://RemoveConsole",
  12. CallbackContract=typeof(IRemoteConsoleReceiver),
  13. SessionMode=SessionMode.Required)]
  14. public interface IRemoteConsoleService
  15. {
  16. [OperationContract]
  17. void Input(string command);
  18. [OperationContract]
  19. string GetCurrentDirectory();
  20. [OperationContract]
  21. IEnumerable<DirectoryInfo> GetDirectories(string directory);
  22. [OperationContract]
  23. IEnumerable<FileInfo> GetFiles(string directory);
  24. [OperationContract]
  25. void SendKey(Key key, ModifierKeys modifiers);
  26. }
  27. public interface IRemoteConsoleReceiver
  28. {
  29. [OperationContract(IsOneWay=true)]
  30. void OutputCallback(string output);
  31. [OperationContract(IsOneWay = true)]
  32. void ErrorCallback(string error);
  33. }
  34. }