Class AuthorizedHostService
- Namespace
- Dynamicweb.Headless
- Assembly
- Dynamicweb.dll
The service provides methods for fetching, adding, updating and removing authorized host data.
public sealed class AuthorizedHostService : ICacheStorage<int, AuthorizedHost>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
Authorized
Host Service
- Implements
- Inherited Members
Constructors
AuthorizedHostService()
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
Parameters
keys
IEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
Parameters
key
intKey to reset
Delete(int)
Delete the authorized host.
Parameters
authorizedHostId
intThe authorized host id
GetAll()
Gets all authorized hosts.
Returns
GetByDomain(string)
Gets the authorized host by domain.
Parameters
domain
stringThe authorized host domain
Returns
GetById(int)
Gets the authorized host by id.
Parameters
authorizedHostId
intThe authorized host id
Returns
Save(AuthorizedHost)
Saves the authorized host.
Parameters
authorizedHost
AuthorizedHost The authorized host