allencoded
allencoded

Reputation: 7265

Can I use server side code in Windows Azure Mobile Services

I have noticed when accessing windows mobile service I can schedule tasks to perform at certain times. I also noticed that the script to perform these tasks is only javascript? Is there a way I can use some server side code to perform a mobile service?

I want to be able to connect to an API. Check for a specific update. If that update is present send an email to myself.

Unfortunately this API suffers from the same-origin policy and doesn't offer a solution like JSONP. Therefore I will need to handle this API access server side.

Upvotes: 0

Views: 99

Answers (2)

DavideB
DavideB

Reputation: 609

I was interested in Widows Azure Mobile Services because of the Scheduler service, as a simpler alternative to jobs running in Worker Roles with Quartz and other alternatives, but I felt the same difficulty you describe in having to work in a JS only environment, which is a problem in my scenario.

Are you aware of Windows Azure Web Site Web Jobs (here and here)? You can configure continuous or scheduled jobs developed in many script languages as well as in .Net.

We moved many smaller tasks from under-utilized and more complex Worker Roles to Web Jobs as simple .Net console apps. Via the Web Jobs SDK you also get a good monitoring environment.

Upvotes: 1

Horizon_Net
Horizon_Net

Reputation: 5979

Currently you can only use JavaScript, but support for other languages (like C#) is planned.

Upvotes: 2

Related Questions