mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 19:40:05 -07:00
!wip
This commit is contained in:
parent
5bb4d133ae
commit
a4cbb24d0f
18 changed files with 152 additions and 16 deletions
17
src/Ombi.Hubs/Ombi.Hubs.csproj
Normal file
17
src/Ombi.Hubs/Ombi.Hubs.csproj
Normal file
|
@ -0,0 +1,17 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNet.SignalR" Version="2.4.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.AspNetCore.SignalR.Core">
|
||||
<HintPath>..\..\..\..\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.signalr.core\1.1.0\lib\netstandard2.0\Microsoft.AspNetCore.SignalR.Core.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
14
src/Ombi.Hubs/ScheduledJobsHub.cs
Normal file
14
src/Ombi.Hubs/ScheduledJobsHub.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace Ombi.Hubs
|
||||
{
|
||||
public class ScheduledJobsHub : Hub
|
||||
{
|
||||
public Task Send(string data)
|
||||
{
|
||||
return Clients.All.SendAsync("Send", data);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue