Skip to content

Instantly share code, notes, and snippets.

@howarddierking
Created November 30, 2011 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save howarddierking/1410460 to your computer and use it in GitHub Desktop.
Save howarddierking/1410460 to your computer and use it in GitHub Desktop.
Invalid WCF async service contract
[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