Skip to content

Commit 91c8419

Browse files
committed
Include package Abp.Web.SignalR.AspNetCore
1 parent 126dec8 commit 91c8419

File tree

6 files changed

+26
-7
lines changed

6 files changed

+26
-7
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Core/AbpCompanyName.AbpProjectName.Web.Core.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919

2020
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' ">
2121
<DefineConstants>FEATURE_SIGNALR</DefineConstants>
22+
<DefineConstants>FEATURE_SIGNALR_OWIN</DefineConstants>
23+
</PropertyGroup>
24+
25+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
26+
<DefineConstants>FEATURE_SIGNALR</DefineConstants>
2227
</PropertyGroup>
2328

2429
<ItemGroup>
@@ -44,4 +49,8 @@
4449
<PackageReference Include="Abp.Owin" Version="3.2.4" />
4550
</ItemGroup>
4651

52+
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
53+
<PackageReference Include="Abp.Web.SignalR.AspNetCore" Version="3.2.6" />
54+
</ItemGroup>
55+
4756
</Project>

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Core/Owin/BuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if FEATURE_SIGNALR
1+
#if FEATURE_SIGNALR_OWIN
22
using System;
33
using System.Collections.Generic;
44
using System.Threading.Tasks;

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/AbpCompanyName.AbpProjectName.Web.Host.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' ">
1414
<DefineConstants>FEATURE_SIGNALR</DefineConstants>
15+
<DefineConstants>FEATURE_SIGNALR_OWIN</DefineConstants>
16+
</PropertyGroup>
17+
18+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
19+
<DefineConstants>FEATURE_SIGNALR</DefineConstants>
1520
</PropertyGroup>
1621

1722
<ItemGroup>

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/Startup/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
using AbpCompanyName.AbpProjectName.Configuration;
1616
using AbpCompanyName.AbpProjectName.Identity;
1717

18-
#if FEATURE_SIGNALR
18+
#if FEATURE_SIGNALR_OWIN
1919
using Microsoft.AspNet.SignalR;
2020
using Microsoft.Owin.Cors;
2121
using Owin;
@@ -104,7 +104,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
104104

105105
app.UseAbpRequestLocalization();
106106

107-
#if FEATURE_SIGNALR
107+
#if FEATURE_SIGNALR_OWIN
108108
// Integrate with OWIN
109109
app.UseAppBuilder(ConfigureOwinServices);
110110
#endif
@@ -131,7 +131,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
131131
}); // URL: /swagger
132132
}
133133

134-
#if FEATURE_SIGNALR
134+
#if FEATURE_SIGNALR_OWIN
135135
private static void ConfigureOwinServices(IAppBuilder app)
136136
{
137137
app.Properties["host.AppName"] = "AbpProjectName";

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/AbpCompanyName.AbpProjectName.Web.Mvc.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313

1414
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' ">
1515
<DefineConstants>FEATURE_SIGNALR</DefineConstants>
16+
<DefineConstants>FEATURE_SIGNALR_OWIN</DefineConstants>
17+
</PropertyGroup>
18+
19+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
20+
<DefineConstants>FEATURE_SIGNALR</DefineConstants>
1621
</PropertyGroup>
1722

1823
<ItemGroup>

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Startup/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using AbpCompanyName.AbpProjectName.Identity;
1414
using AbpCompanyName.AbpProjectName.Web.Resources;
1515

16-
#if FEATURE_SIGNALR
16+
#if FEATURE_SIGNALR_OWIN
1717
using Owin;
1818
using Abp.Owin;
1919
using AbpCompanyName.AbpProjectName.Owin;
@@ -70,7 +70,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
7070

7171
app.UseJwtTokenMiddleware();
7272

73-
#if FEATURE_SIGNALR
73+
#if FEATURE_SIGNALR_OWIN
7474
// Integrate with OWIN
7575
app.UseAppBuilder(ConfigureOwinServices);
7676
#endif
@@ -87,7 +87,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
8787
});
8888
}
8989

90-
#if FEATURE_SIGNALR
90+
#if FEATURE_SIGNALR_OWIN
9191
private static void ConfigureOwinServices(IAppBuilder app)
9292
{
9393
app.Properties["host.AppName"] = "AbpProjectName";

0 commit comments

Comments
 (0)