Share via


PollingFileChangeToken Class

Definition

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 false.

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.

Applies to