Skip to content

beldur/SimpleVoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple wrapper for SimpleVoc's REST interface in C#. Uses Visual Studio Async CTP.

var _simpleVoc = new SimpleVocConnection("192.168.178.20", 8008);

// Set
_simpleVoc.Set(new SimpleVocValue()
{
	Key = "User/1/Name",
	Data = "Peter Pan",
	Extended = new Dictionary<string, string>()
	{
		{ "type", "mischievous"}
	},
	Expires = DateTime.Now.AddDays(1)
});

// Get keys
var user = _simpleVoc.GetKeys("User", "type==\"mischievous\"");

// Get
var result = _simpleVoc.Get("User/1/Name");

For asynchronous access you can use SetAsync, GetAsync and GetKeysAsync wich returns a of Task<T>.

About

A simple REST wrapper for SimpleVoc in .NET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages