using System.Collections.Generic;
using System.ServiceModel;
namespace TGS.Interface.Components
{
///
/// Interface for managing the service
///
[ServiceContract]
public interface ITGSService
{
///
/// Next stop of the service will not close DD and sets a flag for it to reattach once it restarts
///
[OperationContract]
void PrepareForUpdate();
///
/// Get the port used for remote operation
///
/// The port used for remote operation
[OperationContract]
ushort RemoteAccessPort();
///
/// Set the port used for remote operation
/// Requires a service restart to take effect
///
/// The new port to use for remote operation
/// null on success, error message on failure
[OperationContract]
string SetRemoteAccessPort(ushort port);
///
/// Retrieve's the service's version
///
/// The service's version
[OperationContract]
string Version();
///
/// Sets the path to the python 2.7 installation
///
/// The new path
/// if the path exists, otherwise
[OperationContract]
bool SetPythonPath(string path);
///
/// Gets the path to the python 2.7 installation
///
/// The path to the python 2.7 installation
[OperationContract]
string PythonPath();
}
}