Class StorageAdapter
Represents an adapter for the Storage domain to simplify the command interface.
public class StorageAdapter
- Inheritance
-
StorageAdapter
- Inherited Members
Constructors
StorageAdapter(IDevToolsSession)
Initializes a new instance of the StorageAdapter class.
public StorageAdapter(IDevToolsSession session)
Parameters
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
ClearCookies(ClearCookiesCommandSettings, CancellationToken, int?, bool)
clearCookies
public Task<ClearCookiesCommandResponse> ClearCookies(ClearCookiesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ClearCookiesCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ClearDataForOrigin(ClearDataForOriginCommandSettings, CancellationToken, int?, bool)
clearDataForOrigin
public Task<ClearDataForOriginCommandResponse> ClearDataForOrigin(ClearDataForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ClearDataForOriginCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetCookies(GetCookiesCommandSettings, CancellationToken, int?, bool)
getCookies
public Task<GetCookiesCommandResponse> GetCookies(GetCookiesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetCookiesCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetUsageAndQuota(GetUsageAndQuotaCommandSettings, CancellationToken, int?, bool)
getUsageAndQuota
public Task<GetUsageAndQuotaCommandResponse> GetUsageAndQuota(GetUsageAndQuotaCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetUsageAndQuotaCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetCookies(SetCookiesCommandSettings, CancellationToken, int?, bool)
setCookies
public Task<SetCookiesCommandResponse> SetCookies(SetCookiesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetCookiesCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
TrackCacheStorageForOrigin(TrackCacheStorageForOriginCommandSettings, CancellationToken, int?, bool)
trackCacheStorageForOrigin
public Task<TrackCacheStorageForOriginCommandResponse> TrackCacheStorageForOrigin(TrackCacheStorageForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
TrackCacheStorageForOriginCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
TrackIndexedDBForOrigin(TrackIndexedDBForOriginCommandSettings, CancellationToken, int?, bool)
trackIndexedDBForOrigin
public Task<TrackIndexedDBForOriginCommandResponse> TrackIndexedDBForOrigin(TrackIndexedDBForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
TrackIndexedDBForOriginCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
UntrackCacheStorageForOrigin(UntrackCacheStorageForOriginCommandSettings, CancellationToken, int?, bool)
untrackCacheStorageForOrigin
public Task<UntrackCacheStorageForOriginCommandResponse> UntrackCacheStorageForOrigin(UntrackCacheStorageForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
UntrackCacheStorageForOriginCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
UntrackIndexedDBForOrigin(UntrackIndexedDBForOriginCommandSettings, CancellationToken, int?, bool)
untrackIndexedDBForOrigin
public Task<UntrackIndexedDBForOriginCommandResponse> UntrackIndexedDBForOrigin(UntrackIndexedDBForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
UntrackIndexedDBForOriginCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
CacheStorageContentUpdated
cacheStorageContentUpdated
public event EventHandler<CacheStorageContentUpdatedEventArgs> CacheStorageContentUpdated
Event Type
CacheStorageListUpdated
cacheStorageListUpdated
public event EventHandler<CacheStorageListUpdatedEventArgs> CacheStorageListUpdated
Event Type
IndexedDBContentUpdated
indexedDBContentUpdated
public event EventHandler<IndexedDBContentUpdatedEventArgs> IndexedDBContentUpdated
Event Type
IndexedDBListUpdated
indexedDBListUpdated
public event EventHandler<IndexedDBListUpdatedEventArgs> IndexedDBListUpdated