PollingFileChangeToken Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A change token that polls for file system changes.
public ref class PollingFileChangeToken : Microsoft::Extensions::Primitives::IChangeToken
public class PollingFileChangeToken : Microsoft.Extensions.Primitives.IChangeToken
type PollingFileChangeToken = class
interface IChangeToken
Public Class PollingFileChangeToken
Implements IChangeToken
- Inheritance
-
PollingFileChangeToken
- Implements
Remarks
Polling occurs every 4 seconds.
This change token does not raise any change callbacks. Callers should watch for HasChanged to turn from false
to true
and dispose the token after this happens.
Constructors
PollingFileChangeToken(FileInfo) |
Initializes a new instance of PollingFileChangeToken that polls the specified file for changes as determined by LastWriteTimeUtc. |
Properties
ActiveChangeCallbacks |
Gets a value that's always |
HasChanged |
Gets a value that indicates whether the file has changed since the change token was created. |
Methods
RegisterChangeCallback(Action<Object>, Object) |
Does not actually register callbacks. |