Deli z drugimi prek


PollingFileChangeToken Class

Definition

A change token that polls for file system changes.

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.

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.

Constructors

PollingFileChangeToken(FileInfo)

Initializes a new instance of PollingFileChangeToken that polls the specified file for changes as determined by LastWriteTimeUtc.

Properties

ActiveChangeCallbacks

Always false.

HasChanged

True when the file has changed since the change token was created. Once the file changes, this value is always true

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