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