Edit

Share via


CacheBase<T>.InitializeAsync Method

Definition

Initializes FileCache and provides root folder and cache folder name

public virtual System.Threading.Tasks.Task InitializeAsync (Windows.Storage.StorageFolder folder = default, string folderName = default, System.Net.Http.HttpMessageHandler httpMessageHandler = default);
abstract member InitializeAsync : Windows.Storage.StorageFolder * string * System.Net.Http.HttpMessageHandler -> System.Threading.Tasks.Task
override this.InitializeAsync : Windows.Storage.StorageFolder * string * System.Net.Http.HttpMessageHandler -> System.Threading.Tasks.Task
Public Overridable Function InitializeAsync (Optional folder As StorageFolder = Nothing, Optional folderName As String = Nothing, Optional httpMessageHandler As HttpMessageHandler = Nothing) As Task

Parameters

folder
Windows.Storage.StorageFolder

Folder that is used as root for cache

folderName
String

Cache folder name

httpMessageHandler
HttpMessageHandler

instance of HttpMessageHandler

Returns

awaitable task

Applies to