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

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RegisterChangeCallback(Action<Object>, Object)

Does not actually register callbacks.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to