mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-18 04:53:46 +02:00
Added SMBServer.OnLogEntry event
Implementers can now subscribe to the OnLogEntry event and receive log entries.
This commit is contained in:
parent
08717b5358
commit
74e92f2e2b
14 changed files with 147 additions and 44 deletions
|
@ -232,7 +232,7 @@ namespace SMBLibrary.Server
|
|||
Stream stream = m_openedFiles[fileID].Stream;
|
||||
if (stream != null)
|
||||
{
|
||||
System.Diagnostics.Debug.Print("[{0}] Closing file '{1}'", DateTime.Now.ToString("HH:mm:ss:ffff"), m_openedFiles[fileID].Path);
|
||||
LogToServer(Severity.Verbose, "Closing file '{0}'", m_openedFiles[fileID].Path);
|
||||
stream.Close();
|
||||
}
|
||||
m_openedFiles.Remove(fileID);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue