Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #60 from iron-io/mono_hello_update

Mono hello update
  • Loading branch information...
commit 2408accf13aa6e9cad082863e759844931c0c2f9 2 parents b408c28 + 5ca2c24
@treeder treeder authored
View
22 dotnet/hello_worker/README.md
@@ -0,0 +1,22 @@
+
+
+## Compile mono.cs to an exe.
+
+Using mono, you would run:
+
+ gmcs hello.cs
+
+Or build using Microsoft tools.
+
+## Upload Worker
+
+The `hello_mono.worker` defines the worker and it's dependencies. For this example, the only dependency
+is the hello.exe file so that's all that's in it. Use the iron_worker command line interface (CLI) to upload
+the worker.
+
+ iron_worker upload hello
+
+## Now you can queue up tasks for it!
+
+ iron_worker queue HelloMono -p '{"query":"xbox"}'
+
View
11 dotnet/hello_worker/hello.cs
@@ -0,0 +1,11 @@
+using System;
+
+public class HelloWorld
+{
+ static public void Main (string[] args)
+ {
+ Console.WriteLine ("Hello Mono!");
+ // TODO: LOAD PAYLOAD FILE AND JSON PARSE IT
+ // TODO: PRINT PAYLOAD CONTENTS
+ }
+}
View
0  dotnet/hello_world/test.exe → dotnet/hello_worker/hello.exe 100755 → 100644
File renamed without changes
View
3  dotnet/hello_worker/hello.worker
@@ -0,0 +1,3 @@
+runtime 'mono'
+name 'HelloMono'
+exec 'hello.exe'
View
1  dotnet/hello_worker/test.sh
@@ -0,0 +1 @@
+mono hello.exe
View
4 dotnet/hello_world/mono.worker
@@ -1,4 +0,0 @@
-runtime 'binary'
-
-exec 'test.sh'
-file 'test.exe'
View
1  dotnet/hello_world/test.sh
@@ -1 +0,0 @@
-mono test.exe
View
5 ruby_ng/hello_worker/README.md
@@ -1,8 +1,11 @@
# HelloWorker Example
-This is the simplest example you can find and is a great place to start. It simply logs some output to the worker log.
+This is the simplest example you can find and is a great place to start. It simply logs some output
+to the worker log.
1. Be sure you've setup your Iron.io credentials, see main [README.md](https://github.com/iron-io/iron_worker_examples).
2. Run `iron_worker upload hello` to upload the worker code package to IronWorker.
3. Run `ruby enqueue.rb` to queue up a task.
4. Look at [HUD](https://hud.iron.io) to view your tasks running, check logs, etc.
+
+Read the code in this directory to learn more about what happened.
Please sign in to comment.
Something went wrong with that request. Please try again.