diff --git a/src/ElectronNET.Samples.AuthMiddleware/ElectronNET.Samples.AuthMiddleware.sln b/src/ElectronNET.Samples.AuthMiddleware/ElectronNET.Samples.AuthMiddleware.sln new file mode 100644 index 0000000..e77fdf0 --- /dev/null +++ b/src/ElectronNET.Samples.AuthMiddleware/ElectronNET.Samples.AuthMiddleware.sln @@ -0,0 +1,24 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElectronNET.Samples.BlazorSignalR", "ElectronNET.Samples.BlazorSignalR.csproj", "{1A87C5B5-16EE-5DA0-33B4-17DA71675A87}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1A87C5B5-16EE-5DA0-33B4-17DA71675A87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1A87C5B5-16EE-5DA0-33B4-17DA71675A87}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1A87C5B5-16EE-5DA0-33B4-17DA71675A87}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1A87C5B5-16EE-5DA0-33B4-17DA71675A87}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5892D89B-BD0D-43B9-9064-0CBAC9A0FF60} + EndGlobalSection +EndGlobal diff --git a/src/ElectronNET.Samples.AuthMiddleware/Program.cs b/src/ElectronNET.Samples.AuthMiddleware/Program.cs index 435ac66..87e9bd2 100644 --- a/src/ElectronNET.Samples.AuthMiddleware/Program.cs +++ b/src/ElectronNET.Samples.AuthMiddleware/Program.cs @@ -1,7 +1,7 @@ using ElectronNET.API; using ElectronNET.API.Entities; -using ElectronNET.AspNet.Middleware; -using ElectronNET.AspNet.Services; +// using ElectronNET.AspNet.Middleware; +// using ElectronNET.AspNet.Services; var watch = new System.Diagnostics.Stopwatch(); watch.Start(); @@ -24,7 +24,7 @@ builder.Services.AddCors(options => }); // Register Electron authentication service as singleton -builder.Services.AddSingleton(); +// builder.Services.AddSingleton(); builder.Services.AddElectron(); @@ -63,7 +63,7 @@ var app = builder.Build(); serviceProvider = app.Services; // Capture for use in Electron callback above // Register authentication middleware FIRST (before routing, static files, etc.) -app.UseMiddleware(); +// app.UseMiddleware(); // Enable routing app.UseRouting();