Project Description
This project lets you create on{x} (https://www.onx.ms) rules using C# and take advantage of the IDE. It requires SharpKit (http://www.sharpkit.net) which can be used for free for small projects like on{X} recipes.

The project currently supports version 0.53.0 (as of June 15, 2012), minus the feeds API.

It also contains support for the setOn{X} project v1.04 (http://www.setonx.com) and TweetOn{x} (http://tweetonx.com). See sample code in the "Playground" project.

Sample Code
[JsType(JsMode.Global, Filename = "res/On{x}.js")]
public class SharpKitPageScript : OnxContextBase
{
  [JsMethod(GlobalCode=true)]
  static void Configure()
  {
     Device.Screen.Unlock += delegate()
     {
        var notification = Device.Notifications.CreateNotification("Hello world!");
        notification.Show();
        Console.Log("Hello World notification was sent to the phone");
     };
  }
}

Last edited Jun 17, 2012 at 11:06 AM by alonweiss, version 9