Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created May 12, 2020 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/8e3363c2457ac9ce66027dd67fe5086a to your computer and use it in GitHub Desktop.
Save bjoerntx/8e3363c2457ac9ce66027dd67fe5086a to your computer and use it in GitHub Desktop.
public class CollabHub : Hub
{
public async Task SetEditableRegionSync(EditableRegionSync editableRegionSync)
{
await Clients.All.SendAsync("ReceiveRegionSync", editableRegionSync);
}
}
public class EditableRegionSync
{
public string User { get; set; }
public int RegionId { get; set; }
public string Document { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment