Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
public-items
WnSCNewsAgent
Commits
2a213e9a
Commit
2a213e9a
authored
May 25, 2018
by
Alcides Viamontes E
Browse files
Merge remote-tracking branch 'origin/develop' into prerelease/0.1
parents
1882a87c
944cf07e
Changes
1
Hide whitespace changes
Inline
Side-by-side
NotificationWriterService/FileWatchManager.cs
View file @
2a213e9a
...
...
@@ -59,6 +59,8 @@ namespace NotificationWriterService
_watcherDirectory
.
Created
+=
(
sender
,
e
)
=>
{
if
(
e
.
FullPath
.
Contains
(
ChangeListFolder
))
return
;
var
dateTime
=
DateTimeOffset
.
UtcNow
;
var
files
=
GetFileList
(
e
.
FullPath
).
ToList
();
...
...
@@ -84,6 +86,8 @@ namespace NotificationWriterService
_watcherDirectory
.
Renamed
+=
(
sender
,
e
)
=>
{
if
(
e
.
FullPath
.
Contains
(
ChangeListFolder
))
return
;
var
files
=
GetFileList
(
e
.
FullPath
).
ToList
();
// check this maybe is better move to ProcessQueue
var
dateTime
=
DateTimeOffset
.
UtcNow
;
queue
.
EnqueueList
(
files
.
Select
(
q
=>
new
FileChangeDetail
...
...
@@ -103,7 +107,8 @@ namespace NotificationWriterService
_watcherDirectory
.
Deleted
+=
(
sender
,
e
)
=>
{
if
(
e
.
FullPath
.
Contains
(
ChangeListFolder
))
return
;
queue
.
Enqueue
(
new
FileChangeDetail
{
ChangeType
=
0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment