Skip to content

Commit

Permalink
Complete Work
Browse files Browse the repository at this point in the history
Complete version of the work test.  ver 1.0.0
  • Loading branch information
Wasenshi authored and Wasenshi committed Aug 21, 2016
1 parent 9b72f4f commit cc272dd
Show file tree
Hide file tree
Showing 14 changed files with 313 additions and 17 deletions.
Binary file modified FabricServer/.vs/FabricServer/v14/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 13 additions & 7 deletions FabricServer/WebService/Controllers/MessageController.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Web.Http;

namespace WebService.Controllers
{
public class MessageController : ApiController
{
[AcceptVerbs("GET", "POST")]
public string RecieveMsg(string msg)
[HttpGet]
public string Msg(string msg)
{
ServiceEventSource.Current.Message("A client has sent a message: " + msg);
return "You have said : '" + msg + "' to the server!";
}
[HttpPost]
public async Task<string> PostMsg([FromBody]string msg)
{
ServiceEventSource.Current.Message("request detail: \n" + Request);
string content = await Request.Content.ReadAsStringAsync();
ServiceEventSource.Current.Message("body: " + content);


//public string Get(string msg)
//{
// ServiceEventSource.Current.Message("A client has sent a message: " + msg);
// return "You have said : '" + msg + "' to the server!";
//}
ServiceEventSource.Current.Message("A client has sent a message: " + msg);
return "You have said : '" + msg + "' to the server!";
}
}
}
Binary file modified FabricServer/WebService/bin/x64/Debug/WebService.exe
Binary file not shown.
Binary file modified FabricServer/WebService/bin/x64/Debug/WebService.pdb
Binary file not shown.
Binary file modified FabricServer/WebService/obj/x64/Debug/WebService.exe
Binary file not shown.
Binary file modified FabricServer/WebService/obj/x64/Debug/WebService.pdb
Binary file not shown.
Loading

0 comments on commit cc272dd

Please sign in to comment.