Injection doesn't work in constructors
This commit is contained in:
@ -58,8 +58,10 @@
|
||||
FileMessageCapturer messageCapturer;
|
||||
bool catchMessageBody;
|
||||
|
||||
public Export()
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
base.OnInitialized();
|
||||
|
||||
logger.OnWriteLine += OnLog;
|
||||
|
||||
messageCapturer = new FileMessageCapturer("test/export", logger);
|
||||
|
||||
Reference in New Issue
Block a user