Created
March 8, 2011 23:07
-
-
Save mattkruskamp/861314 to your computer and use it in GitHub Desktop.
WCF Rest Service
This file contains hidden or 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
[ServiceContract] | |
[AspNetCompatibilityRequirements( | |
RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] | |
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)] | |
public class TestService | |
{ | |
[Description("Test Description.")] | |
[WebGet(UriTemplate = "go")] | |
public string Test() | |
{ | |
return "hi2u"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment