Commit Graph
16 Commits
Author SHA1 Message Date
Tarek Mahmoud Sayed b3120f73dd Remove checked in resources generated code file (SR.cs)
After this change it is no longer required to include the resources
generated code file SR.cs inside the project tree as such files
will get automatically generated in the intermediate folder


Commit migrated from https://github.com/dotnet/corefx/commit/e7513c213c16f5ca4bd35c6c4eace534b4d94ed5
2015-03-17 16:24:08 -07:00
Stephen Toub e4bbc092e6 Merge pull request dotnet/corefx#1125 from stephentoub/watcher_cleanup
FileSystemWatcher cleanup around cross-plat and performance

Commit migrated from https://github.com/dotnet/corefx/commit/0d641f4c447fa375b4167f17ed8954c2e7374159
2015-03-16 21:46:35 -04:00
Christopher Costa 9ebbafc318 Remove assert which notifies of a race condition in System.IO.FileSystem.Watcher...
but doesn't provide any real value.

This code is racing with a call to close on the handle. The check for IsHandleInvalid
returns false, but then someone closes the handle before this code runs. We'd
either need to lock or swallow the exception.  This change ignores the assert since
1) it isn't giving us any new information, and 2) that's what the release code
has been doing anyways.


Commit migrated from https://github.com/dotnet/corefx/commit/2a856b52f0beb66d0647e50895678d31d074da00
2015-03-16 11:32:41 -07:00
Stephen Toub f4802861a7 Minor cleanup in FileSystemWatcher
Removed unused usings and replaced a few type names with their keyword equivalents.


Commit migrated from https://github.com/dotnet/corefx/commit/00a05bd99ed0f8beb324857f09c9e7a71c61ce47
2015-03-12 11:47:06 -04:00
Stephen Toub 2770edfc51 Avoid unnecessary FileSystemWatcher allocations/work when no handler registered
The FileSystemWatcher implementation today does event arg allocations and string pattern matching for each event even if no event handler is registered to handle that event.  This commit restructures things a little to avoid that unnecessary work.


Commit migrated from https://github.com/dotnet/corefx/commit/426d804b867aebf1900446a7920bc54e547b0474
2015-03-12 11:41:31 -04:00
Wes Haggard 12ec868955 Updated the SR generated file for System.IO.FileSystem.Watcher as it doesn't match the currently generated versions.
[tfs-changeset: 1430950]


Commit migrated from https://github.com/dotnet/corefx/commit/caf1747e8c1bbf0ed9838346f1da8268c09865c6
2015-03-12 08:40:41 -07:00
Stephen Toub 91401a6f29 Add case sensitivity of FileSystemWatcher to PAL
Make sure that string comparisons are performed in a manner most appropriate to the OS.


Commit migrated from https://github.com/dotnet/corefx/commit/c94022f5aca8674a9840569bee7c71dca4a05646
2015-03-12 09:50:23 -04:00
Stephen Toub 16c7cbb37f Added OS configurations to FileSystemWatcher sln and csproj
Commit migrated from https://github.com/dotnet/corefx/commit/075c3c9f34b79e06a9c7fd0ece905c83fd1b6644
2015-03-12 08:24:37 -04:00
Stephen Toub aa60dbc7f8 Reorganize code slightly in FileSystemWatcher PAL implementations
After we'd done the Linux implementation, we started a convention elsewhere in corefx where everything that implements the PAL is above a particular comment, with everything else below.  Just instituting that here as well.


Commit migrated from https://github.com/dotnet/corefx/commit/6e81f6bfea494c8881d66934063c072331710d88
2015-03-12 08:19:02 -04:00
Christopher Costa 0dec4c1f59 Fix spaces in sln
Commit migrated from https://github.com/dotnet/corefx/commit/9b711c4a7ad346b044ba829be1f0b6e3759a6ac3
2015-03-11 18:46:04 -07:00
Christopher Costa 933eca34e2 Update readme.md, remove unneccesary file (we don't plan to implement FreeBSD at this time).
Commit migrated from https://github.com/dotnet/corefx/commit/b8fac25d59c7a07b17aa140b5fd614c03e29147d
2015-03-10 11:42:56 -07:00
Christopher Costa abd5cf0467 Fixes for Unix common interop library refactoring
Commit migrated from https://github.com/dotnet/corefx/commit/befb2b661b71a2de672afcc021f48a1367e21d0e
2015-03-09 14:37:30 -07:00
Christopher Costa 573f338e1b Updated based on PR feedback...
- Refactor interop.inotify.cs
- Convert string comparison to use equals instead of Compare
- Update Resources to consume resource generation change commit
- Separate project from System.IO.FileSystem
- move sln into library directory
- Remove assemblyinfo because it is now auto-generated.


Commit migrated from https://github.com/dotnet/corefx/commit/a07b789661114f7d441605067a37d4c0f7e24557
2015-03-09 13:37:21 -07:00
Christopher Costa 9e1a195e0e Remove unused SafeNativeMethods, add Link property to Compile properties for common Interop assemblies.
Commit migrated from https://github.com/dotnet/corefx/commit/9ee85bd6e0db279587d3b934c97e3e490cf7fa54
2015-03-09 11:51:30 -07:00
Christopher Costa e151a5a9ae Restructure for interop library changes.
Commit migrated from https://github.com/dotnet/corefx/commit/9b1e9ca2f097881bce2a6360a25ecfdafa1350f9
2015-03-09 11:51:25 -07:00
dotnet-bot 254a638e63 Add System.IO.FileSystem.Watcher Source and Tests
Commit migrated from https://github.com/dotnet/corefx/commit/73ab96765fa59e5a1d224ecf804a29379da30c0b
2015-03-09 11:50:41 -07:00