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.
Exceptions
- ArgumentNullException
If
session
is null.
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
ClearDataForStorageKey(ClearDataForStorageKeyCommandSettings, CancellationToken, int?, bool)
clearDataForStorageKey
public Task<ClearDataForStorageKeyCommandResponse?> ClearDataForStorageKey(ClearDataForStorageKeyCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ClearDataForStorageKeyCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ClearSharedStorageEntries(ClearSharedStorageEntriesCommandSettings, CancellationToken, int?, bool)
clearSharedStorageEntries
public Task<ClearSharedStorageEntriesCommandResponse?> ClearSharedStorageEntries(ClearSharedStorageEntriesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ClearSharedStorageEntriesCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ClearTrustTokens(ClearTrustTokensCommandSettings, CancellationToken, int?, bool)
clearTrustTokens
public Task<ClearTrustTokensCommandResponse> ClearTrustTokens(ClearTrustTokensCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ClearTrustTokensCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
DeleteSharedStorageEntry(DeleteSharedStorageEntryCommandSettings, CancellationToken, int?, bool)
deleteSharedStorageEntry
public Task<DeleteSharedStorageEntryCommandResponse?> DeleteSharedStorageEntry(DeleteSharedStorageEntryCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DeleteSharedStorageEntryCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
DeleteStorageBucket(DeleteStorageBucketCommandSettings, CancellationToken, int?, bool)
deleteStorageBucket
public Task<DeleteStorageBucketCommandResponse?> DeleteStorageBucket(DeleteStorageBucketCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DeleteStorageBucketCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetAffectedUrlsForThirdPartyCookieMetadata(GetAffectedUrlsForThirdPartyCookieMetadataCommandSettings, CancellationToken, int?, bool)
getAffectedUrlsForThirdPartyCookieMetadata
public Task<GetAffectedUrlsForThirdPartyCookieMetadataCommandResponse> GetAffectedUrlsForThirdPartyCookieMetadata(GetAffectedUrlsForThirdPartyCookieMetadataCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetAffectedUrlsForThirdPartyCookieMetadataCommandSettingscancellationToken
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
GetInterestGroupDetails(GetInterestGroupDetailsCommandSettings, CancellationToken, int?, bool)
getInterestGroupDetails
public Task<GetInterestGroupDetailsCommandResponse> GetInterestGroupDetails(GetInterestGroupDetailsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetInterestGroupDetailsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetRelatedWebsiteSets(GetRelatedWebsiteSetsCommandSettings?, CancellationToken, int?, bool)
getRelatedWebsiteSets
public Task<GetRelatedWebsiteSetsCommandResponse> GetRelatedWebsiteSets(GetRelatedWebsiteSetsCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetRelatedWebsiteSetsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetSharedStorageEntries(GetSharedStorageEntriesCommandSettings, CancellationToken, int?, bool)
getSharedStorageEntries
public Task<GetSharedStorageEntriesCommandResponse> GetSharedStorageEntries(GetSharedStorageEntriesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetSharedStorageEntriesCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetSharedStorageMetadata(GetSharedStorageMetadataCommandSettings, CancellationToken, int?, bool)
getSharedStorageMetadata
public Task<GetSharedStorageMetadataCommandResponse> GetSharedStorageMetadata(GetSharedStorageMetadataCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetSharedStorageMetadataCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetStorageKeyForFrame(GetStorageKeyForFrameCommandSettings, CancellationToken, int?, bool)
getStorageKeyForFrame
public Task<GetStorageKeyForFrameCommandResponse> GetStorageKeyForFrame(GetStorageKeyForFrameCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetStorageKeyForFrameCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetTrustTokens(GetTrustTokensCommandSettings?, CancellationToken, int?, bool)
getTrustTokens
public Task<GetTrustTokensCommandResponse> GetTrustTokens(GetTrustTokensCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetTrustTokensCommandSettingscancellationToken
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
OverrideQuotaForOrigin(OverrideQuotaForOriginCommandSettings, CancellationToken, int?, bool)
overrideQuotaForOrigin
public Task<OverrideQuotaForOriginCommandResponse?> OverrideQuotaForOrigin(OverrideQuotaForOriginCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
OverrideQuotaForOriginCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ResetSharedStorageBudget(ResetSharedStorageBudgetCommandSettings, CancellationToken, int?, bool)
resetSharedStorageBudget
public Task<ResetSharedStorageBudgetCommandResponse?> ResetSharedStorageBudget(ResetSharedStorageBudgetCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ResetSharedStorageBudgetCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
RunBounceTrackingMitigations(RunBounceTrackingMitigationsCommandSettings?, CancellationToken, int?, bool)
runBounceTrackingMitigations
public Task<RunBounceTrackingMitigationsCommandResponse> RunBounceTrackingMitigations(RunBounceTrackingMitigationsCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
RunBounceTrackingMitigationsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SendPendingAttributionReports(SendPendingAttributionReportsCommandSettings?, CancellationToken, int?, bool)
sendPendingAttributionReports
public Task<SendPendingAttributionReportsCommandResponse> SendPendingAttributionReports(SendPendingAttributionReportsCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SendPendingAttributionReportsCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetAttributionReportingLocalTestingMode(SetAttributionReportingLocalTestingModeCommandSettings, CancellationToken, int?, bool)
setAttributionReportingLocalTestingMode
public Task<SetAttributionReportingLocalTestingModeCommandResponse?> SetAttributionReportingLocalTestingMode(SetAttributionReportingLocalTestingModeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetAttributionReportingLocalTestingModeCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetAttributionReportingTracking(SetAttributionReportingTrackingCommandSettings, CancellationToken, int?, bool)
setAttributionReportingTracking
public Task<SetAttributionReportingTrackingCommandResponse?> SetAttributionReportingTracking(SetAttributionReportingTrackingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetAttributionReportingTrackingCommandSettingscancellationToken
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
SetInterestGroupAuctionTracking(SetInterestGroupAuctionTrackingCommandSettings, CancellationToken, int?, bool)
setInterestGroupAuctionTracking
public Task<SetInterestGroupAuctionTrackingCommandResponse?> SetInterestGroupAuctionTracking(SetInterestGroupAuctionTrackingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetInterestGroupAuctionTrackingCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetInterestGroupTracking(SetInterestGroupTrackingCommandSettings, CancellationToken, int?, bool)
setInterestGroupTracking
public Task<SetInterestGroupTrackingCommandResponse?> SetInterestGroupTracking(SetInterestGroupTrackingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetInterestGroupTrackingCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetSharedStorageEntry(SetSharedStorageEntryCommandSettings, CancellationToken, int?, bool)
setSharedStorageEntry
public Task<SetSharedStorageEntryCommandResponse?> SetSharedStorageEntry(SetSharedStorageEntryCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetSharedStorageEntryCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetSharedStorageTracking(SetSharedStorageTrackingCommandSettings, CancellationToken, int?, bool)
setSharedStorageTracking
public Task<SetSharedStorageTrackingCommandResponse?> SetSharedStorageTracking(SetSharedStorageTrackingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetSharedStorageTrackingCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetStorageBucketTracking(SetStorageBucketTrackingCommandSettings, CancellationToken, int?, bool)
setStorageBucketTracking
public Task<SetStorageBucketTrackingCommandResponse?> SetStorageBucketTracking(SetStorageBucketTrackingCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetStorageBucketTrackingCommandSettingscancellationToken
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
TrackCacheStorageForStorageKey(TrackCacheStorageForStorageKeyCommandSettings, CancellationToken, int?, bool)
trackCacheStorageForStorageKey
public Task<TrackCacheStorageForStorageKeyCommandResponse?> TrackCacheStorageForStorageKey(TrackCacheStorageForStorageKeyCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
TrackCacheStorageForStorageKeyCommandSettingscancellationToken
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
TrackIndexedDBForStorageKey(TrackIndexedDBForStorageKeyCommandSettings, CancellationToken, int?, bool)
trackIndexedDBForStorageKey
public Task<TrackIndexedDBForStorageKeyCommandResponse?> TrackIndexedDBForStorageKey(TrackIndexedDBForStorageKeyCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
TrackIndexedDBForStorageKeyCommandSettingscancellationToken
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
UntrackCacheStorageForStorageKey(UntrackCacheStorageForStorageKeyCommandSettings, CancellationToken, int?, bool)
untrackCacheStorageForStorageKey
public Task<UntrackCacheStorageForStorageKeyCommandResponse?> UntrackCacheStorageForStorageKey(UntrackCacheStorageForStorageKeyCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
UntrackCacheStorageForStorageKeyCommandSettingscancellationToken
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
UntrackIndexedDBForStorageKey(UntrackIndexedDBForStorageKeyCommandSettings, CancellationToken, int?, bool)
untrackIndexedDBForStorageKey
public Task<UntrackIndexedDBForStorageKeyCommandResponse?> UntrackIndexedDBForStorageKey(UntrackIndexedDBForStorageKeyCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
UntrackIndexedDBForStorageKeyCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
AttributionReportingSourceRegistered
attributionReportingSourceRegistered
public event EventHandler<AttributionReportingSourceRegisteredEventArgs>? AttributionReportingSourceRegistered
Event Type
AttributionReportingTriggerRegistered
attributionReportingTriggerRegistered
public event EventHandler<AttributionReportingTriggerRegisteredEventArgs>? AttributionReportingTriggerRegistered
Event Type
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
Event Type
InterestGroupAccessed
interestGroupAccessed
public event EventHandler<InterestGroupAccessedEventArgs>? InterestGroupAccessed
Event Type
InterestGroupAuctionEventOccurred
interestGroupAuctionEventOccurred
public event EventHandler<InterestGroupAuctionEventOccurredEventArgs>? InterestGroupAuctionEventOccurred
Event Type
InterestGroupAuctionNetworkRequestCreated
interestGroupAuctionNetworkRequestCreated
public event EventHandler<InterestGroupAuctionNetworkRequestCreatedEventArgs>? InterestGroupAuctionNetworkRequestCreated
Event Type
SharedStorageAccessed
sharedStorageAccessed
public event EventHandler<SharedStorageAccessedEventArgs>? SharedStorageAccessed
Event Type
StorageBucketCreatedOrUpdated
storageBucketCreatedOrUpdated
public event EventHandler<StorageBucketCreatedOrUpdatedEventArgs>? StorageBucketCreatedOrUpdated
Event Type
StorageBucketDeleted
storageBucketDeleted
public event EventHandler<StorageBucketDeletedEventArgs>? StorageBucketDeleted