Skip to content

Commit 9bcaf09

Browse files
committed
tweak registration
1 parent 73b1aae commit 9bcaf09

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*.user
77
*.sln.docstates
88
.vs/
9+
*.secrets.cs
910

1011
# Build results
1112
[Dd]ebug/

src/TechStacks/TechStacks/AppHost.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace TechStacks
2222
{
23-
public class AppHost : AppHostBase
23+
public partial class AppHost : AppHostBase
2424
{
2525
/// <summary>
2626
/// Default constructor.
@@ -35,6 +35,9 @@ public AppHost()
3535
: new AppSettings();
3636
}
3737

38+
public static void Load() => PreInit();
39+
static partial void PreInit();
40+
3841
/// <summary>
3942
/// Application specific configuration
4043
/// This method should initialize any IoC resources utilized by your web service classes.

src/TechStacks/TechStacks/Global.asax.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ protected void Application_Start(object sender, EventArgs e)
1717
{
1818
var customSettings = new FileInfo(@"~/appsettings.license.txt".MapHostAbsolutePath());
1919
var debugSettings = new FileInfo(@"~/../wwwroot_build/deploy/appsettings.license.txt".MapAbsolutePath());
20-
Licensing.RegisterLicenseFromFileIfExists(customSettings.FullName);
21-
Licensing.RegisterLicenseFromFileIfExists(debugSettings.FullName);
20+
AppHost.Load();
2221
new AppHost().Init();
2322
}
2423
}

0 commit comments

Comments
 (0)