-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix serilog disposing sockets upon receiving them as an argument (why?)
- Loading branch information
Showing
11 changed files
with
34 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
// See https://aka.ms/new-console-template for more information | ||
|
||
|
||
using BitMod.Config; | ||
using BitMod.Config; | ||
using BitMod.Logging; | ||
using BitMod.Plugins; | ||
|
||
var configSystem = new ConfigurationSystem(); | ||
var logging = new LoggingSystem(configSystem); | ||
var pluginSystem = new PluginSystem(); | ||
|
||
var log = logging.GetLogger(); | ||
public static class Program | ||
{ | ||
public static void Main() | ||
{ | ||
var configSystem = new ConfigurationSystem(); | ||
var logging = new LoggingSystem(configSystem); | ||
var pluginSystem = new PluginSystem(); | ||
|
||
var bitmod = new BitMod.BitMod(log, configSystem, pluginSystem); | ||
var log = logging.GetLogger(); | ||
|
||
bitmod.Start(); | ||
log.Information("Launching BitMod..."); | ||
|
||
ManualResetEvent close = new ManualResetEvent(false); | ||
var bitmod = new BitMod.BitMod(log, configSystem, pluginSystem); | ||
|
||
close.WaitOne(); | ||
bitmod.Start(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Reflection; | ||
using System.IO; | ||
using System.Reflection; | ||
|
||
using McMaster.NETCore.Plugins; | ||
|
||
|