Skip to content

labelzoom/labelzoom-moca-client-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LabelZoom Logo

labelzoom-moca-client-dotnet

Build Status Release codecov

MOCA client for .NET, sponsored by LabelZoom.

How To Use

See tests for more examples.

using (MocaConnection conn = new HttpMocaConnection(url))
{
    await conn.Login(user, password);
    MocaResponse res = await conn.Execute("publish data where message = 'Hello World!'");
    using (DataTable dt = res.ResponseData)
    {
        Console.WriteLine($"Message: {dt.Rows[0].Field<string>("message")}")
    }
}