Logmessages for creation of library and notification Connector
This commit is contained in:
parent
482fcb7102
commit
660f6a1648
@ -21,6 +21,7 @@ public abstract class LibraryConnector : GlobalBase
|
||||
|
||||
protected LibraryConnector(GlobalBase clone, string baseUrl, string auth, LibraryType libraryType) : base(clone)
|
||||
{
|
||||
Log($"Creating libraryConnector {Enum.GetName(libraryType)}");
|
||||
Regex urlRex = new(@"https?:\/\/[0-9A-z\.]*");
|
||||
if (!urlRex.IsMatch(baseUrl))
|
||||
throw new ArgumentException("Base url does not match pattern");
|
||||
|
@ -6,6 +6,7 @@ public abstract class NotificationConnector : GlobalBase
|
||||
|
||||
protected NotificationConnector(GlobalBase clone, NotificationConnectorType notificationConnectorType) : base(clone)
|
||||
{
|
||||
Log($"Creating notificationConnector {Enum.GetName(notificationConnectorType)}");
|
||||
this.notificationConnectorType = notificationConnectorType;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user