Skip to content

taskqueue/taskqueue-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TaskQueue Client

The official TaskQueue client for .Net.

Supported Platforms

  • .NET Framework 4.5
  • Windows 8
  • Windows Phone 8.1
  • Windows Phone Silverlight 8
  • Xamarin.Android
  • Xamarin.iOS
  • Xamarin.iOS (Classic)
  • Portable Class Libraries

Usage

Tasklets are a single messages that will be routed by TaskQueue.

String tasklets

You can create a tasklet from a string.

var tasklets = Tasklet.From("Hello!")
                .CallbackEndpoint("http://requestb.in/1i8i5zu1")
                .Build();

Object tasklets

You can also create a tasklet from an object and it will be automatically serialized to JSON.

var tasklets = Tasklet.From(new Message { Text = "Hello!" })
                .CallbackEndpoint("http://requestb.in/1i8i5zu1")
                .Build();

public class Message
{
    public string Text { get; set; }
}

Publishing a Task

Once your tasklet is ready to send, simply add it to your task queue.

var apiKey = "00000000000000000000000000000000";

using (var queue = new TaskQueueClient(new Uri("http://api.taskqueue.io"), apiKey))
{
    queue.EnqueueAsync(tasklet).Wait();
}

About

The TaskQueue .Net client library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •