Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Dec 16, 2024
1 parent dc0ff20 commit ff145e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"componentType": "setupComponent"
}],
"symbolInfo": [

{
"id": "connectionstring",
"name": {
Expand Down
1 change: 0 additions & 1 deletion ProjectTemplates/ShinyAspNet/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
global using Shiny.Mediator;
global using ShinyAspNet.Data;
global using ShinyAspNet.Services;

20 changes: 7 additions & 13 deletions ProjectTemplates/ShinyAspNet/Program.cs
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
using System.Text;
using System.Security.Claims;
#if (signalr)
using Microsoft.AspNetCore.SignalR;
#endif
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.IdentityModel.Tokens;
using Microsoft.Extensions.FileProviders;
using OpenTelemetry.Exporter;
using OpenTelemetry.Logs;
#if (signalr)
using Microsoft.AspNetCore.SignalR;
using ShinyAspNet.Hubs;
#endif
#if (efpostgres)
using Npgsql;
#endif
#if (push)
using Shiny.Extensions.Push;
#endif
#if (email)
using Shiny.Extensions.Mail;
#endif
using ShinyAspNet;
using ShinyAspNet.Data;
using ShinyAspNet.Services;
using ShinyAspNet.Services.Impl;
#if (signalr)
using ShinyAspNet.Hubs;
#endif

var builder = WebApplication.CreateBuilder(args);

Expand Down Expand Up @@ -211,9 +208,6 @@
app.UseAuthentication();
app.UseAuthorization();

//#if (push)
app.MapPushEndpoints("push", true, x => x.User.FindFirstValue(ClaimTypes.NameIdentifier)!);
//#endif
//#if (signalr)
app.MapHub<BizHub>("/biz");
//#endif
Expand Down

0 comments on commit ff145e6

Please sign in to comment.