add ping to service for connection test

This commit is contained in:
Ivan Hörler 2018-07-14 10:54:24 +02:00
parent 6e8f46a172
commit 48036aa105
2 changed files with 9 additions and 0 deletions

View File

@ -32,5 +32,8 @@ namespace EHEC_Server
[OperationContract]
List<Result> GetResults();
[OperationContract]
String Ping();
}
}

View File

@ -19,6 +19,7 @@ namespace EHEC_Server
Origin dataaccess_origin = new Origin();
Origin_Exam dataaccess_origin_exam = new Origin_Exam();
Exam dataaccess_exam = new Exam();
private readonly string ping = "pong";
public List<Doctor> GetDoctors()
{
@ -61,5 +62,10 @@ namespace EHEC_Server
{
return dataaccess_result.CreateResult(result);
}
public string Ping()
{
return ping;
}
}
}