Click or drag to resize

EngineWindowsAuthenticateAsync Method

IT Hit User File System
Reads auth info from lcal storage or shows login dialog on Windows platform.

Namespace:  ITHit.FileSystem.Windows
Assembly:  ITHit.FileSystem.Windows (in ITHit.FileSystem.Windows.dll) Version: 8.2.27026.0
Syntax
public virtual Task<bool> AuthenticateAsync(
	IItemsChange itemsChange,
	CancellationToken cancellationToken
)

Parameters

itemsChange
Type: ITHit.FileSystemIItemsChange
Information about the change in file system.
cancellationToken
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

Type: TaskBoolean
True if authentication is successful. False - otherwise.
Remarks

This method is called if the IsAuthenticatedAsync(IItemsChange, CancellationToken) method returns false, before calling Engine methods. You can also call this method whenever the log-in UI must be displayed on the Windows platform, for example after request to server returnd the WWW-Authenticate header.

By default, this method always returns true.

See Also