No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Mesg.Core
Mesg.Service
protos/v0.8.0
.gitignore
README.md
mesg apis.sln

README.md

mesg apis for C#

Installation

Adding core library (meant for applications):

dotnet add package mesg.core

Adding service library (meant for service)

dotnet add package mesg.service

Usage sample

var channel = new Channel("localhost:50052", ChannelCredentials.Insecure);
var client = new Core.CoreClient(channel);

var response = client.ListenEvent(new ListenEventRequest{ ServiceID = "webhook", EventFilter = "request" }).ResponseStream;

Console.WriteLine("Started...");
while (await response.MoveNext(CancellationToken.None)) {
    client.ExecuteTask(new ExecuteTaskRequest{
        ServiceID = "discord-invitation",
        TaskKey = "send",
        InputData = JsonConvert.SerializeObject(new {email, sendgridAPIKey})
    });
    Console.WriteLine("Waiting for next...");
}