/Overthere/Interfaces/IRemoteConsoleService.cs
https://bitbucket.org/floAr/personal · C# · 36 lines · 34 code · 2 blank · 0 comment · 0 complexity · 9daec4cc2988abb8ead1eeb36fec2ec9 MD5 · raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ServiceModel;
- using System.IO;
- using System.Windows.Input;
-
- namespace RemoteConsole
- {
- [ServiceContract(
- Namespace="http://RemoveConsole",
- CallbackContract=typeof(IRemoteConsoleReceiver),
- SessionMode=SessionMode.Required)]
- public interface IRemoteConsoleService
- {
- [OperationContract]
- void Input(string command);
- [OperationContract]
- string GetCurrentDirectory();
- [OperationContract]
- IEnumerable<DirectoryInfo> GetDirectories(string directory);
- [OperationContract]
- IEnumerable<FileInfo> GetFiles(string directory);
- [OperationContract]
- void SendKey(Key key, ModifierKeys modifiers);
- }
-
- public interface IRemoteConsoleReceiver
- {
- [OperationContract(IsOneWay=true)]
- void OutputCallback(string output);
- [OperationContract(IsOneWay = true)]
- void ErrorCallback(string error);
- }
- }