add ping to service for connection test
This commit is contained in:
parent
6e8f46a172
commit
48036aa105
|
@ -32,5 +32,8 @@ namespace EHEC_Server
|
||||||
|
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
List<Result> GetResults();
|
List<Result> GetResults();
|
||||||
|
|
||||||
|
[OperationContract]
|
||||||
|
String Ping();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ namespace EHEC_Server
|
||||||
Origin dataaccess_origin = new Origin();
|
Origin dataaccess_origin = new Origin();
|
||||||
Origin_Exam dataaccess_origin_exam = new Origin_Exam();
|
Origin_Exam dataaccess_origin_exam = new Origin_Exam();
|
||||||
Exam dataaccess_exam = new Exam();
|
Exam dataaccess_exam = new Exam();
|
||||||
|
private readonly string ping = "pong";
|
||||||
|
|
||||||
public List<Doctor> GetDoctors()
|
public List<Doctor> GetDoctors()
|
||||||
{
|
{
|
||||||
|
@ -61,5 +62,10 @@ namespace EHEC_Server
|
||||||
{
|
{
|
||||||
return dataaccess_result.CreateResult(result);
|
return dataaccess_result.CreateResult(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string Ping()
|
||||||
|
{
|
||||||
|
return ping;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue