This module can be installed in any .Net Core application to send messages to the Ray app. I comes in very usefull when working with "watch"
For more information about Ray visit https://myray.app/
Using the .NET Core command-line interface (CLI) tools:
$ dotnet add package Velcon.Ray
or with the Package Manager Console:
$ Install-Package Velcon.Ray
Send message to Ray client
using System;
using Velcon.Ray;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
// Send charles
new Ray().Charles();
// Send message
new Ray("Hallo world!");
}
}
}
Send object to Ray client
using System;
using Velcon.Ray;
namespace ConsoleApp
{
class Program
{
public class Book
{
public string BookId { get; set; }
public string Title { get; set; }
}
static void Main(string[] args)
{
var book = new Book { BookId = "123", Title = "Pride and Prejudice" };
// Send message
new Ray(book);
}
}
}
Feel free to contribute with pull requests, bug reports or enhancement suggestions. We love PR's
The MIT License (MIT). Please see License File for more information.