-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
14 changed files
with
313 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file modified
BIN
+665 Bytes
(100%)
FabricServer/FabricServer/obj/x64/Debug/FabricServer.sfprojResolveAssemblyReference.cache
Binary file not shown.
Binary file modified
BIN
+1.5 KB
(110%)
FabricServer/FabricServer/pkg/Debug/WebServicePkg/Code/WebService.exe
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
FabricServer/FabricServer/pkg/Debug/WebServicePkg/Code/WebService.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.