Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: setup dotnet 6.0 runtime
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: dotnet restore
run: dotnet restore
- name: dotnet build
Expand Down
4 changes: 2 additions & 2 deletions src/Bravo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6-windows</TargetFramework>
<TargetFramework>net10.0-windows</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Assets\bravo.ico</ApplicationIcon>
<Company>SQLBI</Company>
Expand All @@ -17,7 +18,6 @@
<NoWarn>$(NoWarn);1591</NoWarn>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
<AnalysisLevel>latest</AnalysisLevel>
<IncludeOpenAPIAnalyzers>true</IncludeOpenAPIAnalyzers>
<IsPackable>false</IsPackable>
<IsPublishable>true</IsPublishable>
<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

internal class AppAuthenticationHandler : AuthenticationHandler<AppAuthenticationSchemeOptions>
{
public AppAuthenticationHandler(IOptionsMonitor<AppAuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock)
: base(options, logger, encoder, clock)
public AppAuthenticationHandler(IOptionsMonitor<AppAuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder)
: base(options, logger, encoder)
{
}

Expand Down
13 changes: 0 additions & 13 deletions src/Infrastructure/Configuration/StartupConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Sqlbi.Bravo.Infrastructure.Helpers;
using Sqlbi.Bravo.Infrastructure.Services;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Runtime;

Expand All @@ -22,7 +21,6 @@ public static void Configure()
ConfigureProxy();
ConfigureDirectories();
ConfigureMulticoreJit();
ConfigureSecurityProtocols();

WebView2Helper.EnsureRuntimeIsInstalled();
}
Expand All @@ -39,17 +37,6 @@ private static void ConfigureDirectories()
Directory.CreateDirectory(AppEnvironment.ApplicationTempPath);
}

private static void ConfigureSecurityProtocols()
{
var includeTls = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

#pragma warning disable CS0618 // Type or member is obsolete - Justification is that we are removing SecurityProtocolType.Ssl3
var excludeSsl = ServicePointManager.SecurityProtocol & ~SecurityProtocolType.Ssl3;
#pragma warning restore CS0618 // Type or member is obsolete

ServicePointManager.SecurityProtocol = excludeSsl | includeTls;
}

//private static void ConfigureProcessDpiAwareness()
//{
// var windows8Version = new Version(6, 3, 0); // win 8.1 (build number 9600) added support for per monitor dpi
Expand Down
4 changes: 2 additions & 2 deletions src/Infrastructure/Extensions/HostingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ public static IServiceCollection AddAndConfigureAuthentication(this IServiceColl
// Currently it seems to be not possible to add authentication without adding data protection services
// This can be worked around by replicating the code from AddAuthentication() without the call to AddDataProtection()
// See https://github.com/dotnet/aspnetcore/issues/43624

// var builder = services.AddAuthentication(defaultScheme: AppEnvironment.ApiAuthenticationSchema);

services.AddAuthenticationCore();
//services.AddDataProtection();
services.AddWebEncoders();
services.TryAddSingleton<ISystemClock, SystemClock>();
services.TryAddSingleton(TimeProvider.System);

var builder = new AuthenticationBuilder(services);
services.Configure<AuthenticationOptions>((options) => options.DefaultScheme = AppEnvironment.ApiAuthenticationSchema);
Expand Down
4 changes: 3 additions & 1 deletion src/Infrastructure/Helpers/ProcessHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ public static void InvokeOnUIThread(Action action, Control? control = null)
//{
//}

if (control.InvokeRequired)
// Control.FromHandle returns null when the handle does not belong to a control of this
// process: there is no UI thread to marshal to, so the action runs on the calling thread.
if (control is not null && control.InvokeRequired)
{
control.Invoke(action);
}
Expand Down
58 changes: 8 additions & 50 deletions src/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"dependencies": {
"net6.0-windows7.0": {
"net10.0-windows7.0": {
"CsvHelper": {
"type": "Direct",
"requested": "[33.0.1, )",
Expand Down Expand Up @@ -53,8 +53,7 @@
"Dax.Metadata": "1.12.0",
"Dax.ViewVpaExport": "1.12.0",
"Microsoft.AnalysisServices": "19.104.1",
"Newtonsoft.Json": "13.0.3",
"System.IO.Packaging": "8.0.1"
"Newtonsoft.Json": "13.0.3"
}
},
"Dax.Vpax.Obfuscator": {
Expand All @@ -72,10 +71,7 @@
"type": "Direct",
"requested": "[6.5.1, )",
"resolved": "6.5.1",
"contentHash": "LgceF4mPguB/q3NWs6T3bitOFnYIANSRvfhASMgVb8ks7fSqY8jbdBHoVEuUDmxg3T7+kF21qSE0jQv9hdpLng==",
"dependencies": {
"System.Reflection.Metadata": "5.0.0"
}
"contentHash": "LgceF4mPguB/q3NWs6T3bitOFnYIANSRvfhASMgVb8ks7fSqY8jbdBHoVEuUDmxg3T7+kF21qSE0jQv9hdpLng=="
},
"LargeXlsx": {
"type": "Direct",
Expand All @@ -87,10 +83,7 @@
"type": "Direct",
"requested": "[2.23.0, )",
"resolved": "2.23.0",
"contentHash": "nWArUZTdU7iqZLycLKWe0TDms48KKGE6pONH2terYNa8REXiqixrMOkf1sk5DHGMaUTqONU2YkS4SAXBhLStgw==",
"dependencies": {
"System.Diagnostics.DiagnosticSource": "5.0.0"
}
"contentHash": "nWArUZTdU7iqZLycLKWe0TDms48KKGE6pONH2terYNa8REXiqixrMOkf1sk5DHGMaUTqONU2YkS4SAXBhLStgw=="
},
"Microsoft.Identity.Client.Desktop": {
"type": "Direct",
Expand Down Expand Up @@ -137,10 +130,7 @@
"type": "Direct",
"requested": "[7.0.0, )",
"resolved": "7.0.0",
"contentHash": "A4jed4QUviDOm7fJNKAJObEAEkEUXmkGL/w0iyCYTzrl1rezTj8LGFHfsVst4Vb9JwFcTpboiDrvdST48avBpw==",
"dependencies": {
"System.CodeDom": "7.0.0"
}
"contentHash": "A4jed4QUviDOm7fJNKAJObEAEkEUXmkGL/w0iyCYTzrl1rezTj8LGFHfsVst4Vb9JwFcTpboiDrvdST48avBpw=="
},
"Antlr4.Runtime.Standard": {
"type": "Transitive",
Expand Down Expand Up @@ -200,8 +190,7 @@
"resolved": "4.73.1",
"contentHash": "NnDLS8QwYqO5ZZecL2oioi1LUqjh5Ewk4bMLzbgiXJbQmZhDLtKwLxL3DpGMlQAJ2G4KgEnvGPKa+OOgffeJbw==",
"dependencies": {
"Microsoft.IdentityModel.Abstractions": "6.35.0",
"System.Diagnostics.DiagnosticSource": "6.0.1"
"Microsoft.IdentityModel.Abstractions": "6.35.0"
}
},
"Microsoft.Identity.Client.Broker": {
Expand Down Expand Up @@ -253,37 +242,9 @@
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "rJJony+jsxvpfJM9ZGVxjp0DVpalZv8cAhiMSLW6L2hgUWb7k5qPVuzQHWXtkT8lrG1hQ8vWeR+HUwgCQm9J3A=="
},
"System.CodeDom": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "GLltyqEsE5/3IE+zYRP5sNa1l44qKl9v+bfdMcwg+M9qnQf47wK3H0SUR/T+3N4JEQXF3vV4CSuuo0rsg+nq2A=="
},
"System.Diagnostics.DiagnosticSource": {
"type": "Transitive",
"resolved": "6.0.1",
"contentHash": "KiLYDu2k2J82Q9BJpWiuQqCkFjRBWVq4jDzKKWawVi9KWzyD0XG3cmfX0vqTQlL14Wi9EufJrbL0+KCLTbqWiQ==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"System.IO.Packaging": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "KYkIOAvPexQOLDxPO2g0BVoWInnQhPpkFzRqvNrNrMhVT6kqhVr0zEb6KCHlptLFukxnZrjuMVAnxK7pOGUYrw=="
},
"System.Reflection.Metadata": {
"type": "Transitive",
"resolved": "5.0.0",
"contentHash": "5NecZgXktdGg34rh1OenY1rFNDCI8xSjFr+Z4OU4cU06AQHUdRnIIEeWENu3Wl4YowbzkymAIMvi3WyK9U53pQ=="
},
"System.Runtime.CompilerServices.Unsafe": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg=="
}
},
"net6.0-windows7.0/win-x64": {
"net10.0-windows7.0/win-x64": {
"Microsoft.Web.WebView2": {
"type": "Direct",
"requested": "[1.0.2739.15, )",
Expand All @@ -294,10 +255,7 @@
"type": "Direct",
"requested": "[7.0.0, )",
"resolved": "7.0.0",
"contentHash": "A4jed4QUviDOm7fJNKAJObEAEkEUXmkGL/w0iyCYTzrl1rezTj8LGFHfsVst4Vb9JwFcTpboiDrvdST48avBpw==",
"dependencies": {
"System.CodeDom": "7.0.0"
}
"contentHash": "A4jed4QUviDOm7fJNKAJObEAEkEUXmkGL/w0iyCYTzrl1rezTj8LGFHfsVst4Vb9JwFcTpboiDrvdST48avBpw=="
},
"Microsoft.AnalysisServices.AdomdClient": {
"type": "Transitive",
Expand Down
2 changes: 1 addition & 1 deletion test/Bravo.Tests/Bravo.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6-windows</TargetFramework>
<TargetFramework>net10.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
Expand Down
Loading