Created
November 30, 2011 19:38
-
-
Save howarddierking/1410460 to your computer and use it in GitHub Desktop.
Invalid WCF async service contract
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
[ServiceContractAttribute(Namespace = "http://microsoft.samples")] | |
public interface ISampleService | |
{ | |
[OperationContractAttribute] | |
string SampleMethod(string msg); | |
[OperationContractAttribute(AsyncPattern = true)] | |
IAsyncResult BeginSampleMethod(string msg, AsyncCallback callback, | |
object asyncState); | |
string EndSampleMethod(IAsyncResult result); | |
[OperationContractAttribute(Name = "SampleMethod")] | |
Task<string> SampleMethodAsync(string msg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment