mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-25 18:38:14 +02:00
SMBServer: Include NT FileSystem Adapter events in the log
This commit is contained in:
parent
5d77a5d681
commit
37d3141180
1 changed files with 8 additions and 0 deletions
|
@ -101,6 +101,14 @@ namespace SMBServer
|
|||
m_logWriter = new LogWriter();
|
||||
m_server.LogEntryAdded += new EventHandler<LogEntry>(m_logWriter.OnLogEntryAdded);
|
||||
|
||||
foreach (FileSystemShare share in shares)
|
||||
{
|
||||
if (share.FileStore is NTFileSystemAdapter)
|
||||
{
|
||||
((NTFileSystemAdapter)share.FileStore).LogEntryAdded += new EventHandler<LogEntry>(m_logWriter.OnLogEntryAdded);
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
m_server.Start(serverAddress, transportType, chkSMB1.Checked, chkSMB2.Checked);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue