Skip to content

Instantly share code, notes, and snippets.

@geoffreymcgill
Last active January 23, 2017 16:59
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 geoffreymcgill/2d8eb64859df587684a7795ad4510327 to your computer and use it in GitHub Desktop.
Save geoffreymcgill/2d8eb64859df587684a7795ad4510327 to your computer and use it in GitHub Desktop.
Basic WebMethod endpoints for use with Deck.NET
using Newtonsoft.Json;
using System.Web.Script.Services;
using System.Web.Services;
// see http://deck.net/webservice
namespace Deck.www
{
/// <summary>
/// Summary description for DeckServices
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
[ScriptService]
public class DeckServices : WebService
{
[WebMethod]
[ScriptMethod(UseHttpGet = true)]
public object Bounce(object value)
{
return value;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment