mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Debug logs in fetcher/sender, fixed error in HS
This commit is contained in:
+3
-1
@@ -160,7 +160,9 @@ namespace Kruzya.TelegramBot.Core
|
||||
|
||||
private void HookAppDomain()
|
||||
{
|
||||
AppDomain.CurrentDomain.AssemblyResolve += delegate(object? sender, ResolveEventArgs args)
|
||||
var appDomain = AppDomain.CurrentDomain;
|
||||
|
||||
appDomain.AssemblyResolve += delegate(object? sender, ResolveEventArgs args)
|
||||
{
|
||||
var basePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
||||
string assemblyPath = Path.Combine(basePath, new AssemblyName(args.Name).Name + ".dll");
|
||||
|
||||
Reference in New Issue
Block a user