RazorComponentsServiceOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides options for configuring server-side rendering of Razor Components.
public sealed class RazorComponentsServiceOptions
type RazorComponentsServiceOptions = class
Public NotInheritable Class RazorComponentsServiceOptions
- Inheritance
-
RazorComponentsServiceOptions
Constructors
| Name | Description |
|---|---|
| RazorComponentsServiceOptions() | |
Properties
| Name | Description |
|---|---|
| CacheViewHybridCache |
Gets or sets the HybridCache used by CacheView for server-side rendering. When left unset, the registered HybridCache service is used if one is available; otherwise the in-memory store is used. |
| CacheViewSizeLimit |
Gets or sets the maximum size, in bytes, of the in-memory cache used by CacheView for server-side rendering. When the limit is reached, no new entries are cached until existing entries expire. Defaults to 100 MB. A value of 0 configures a zero-byte cache size limit, so entries are not cached. |
| DetailedErrors |
Gets or sets a value that determines whether to include detailed information on errors. |
| DisableClientValidation |
Gets or sets a value that determines whether client-side validation is disabled for all
forms rendered with static server-side rendering. When |
| MaxFormMappingCollectionSize |
Gets or sets the maximum number of elements allowed in a form collection. |
| MaxFormMappingErrorCount |
Gets or sets the maximum number of errors allowed when mapping form data. |
| MaxFormMappingKeySize |
Gets or sets the maximum size of the buffer used to read form data keys. |
| MaxFormMappingRecursionDepth |
Gets or sets the maximum depth allowed when recursively mapping form data. |
| TempDataCookie |
Determines the settings used to create the TempData cookie. |
| TempDataProviderType |
Gets or sets the storage provider type for TempData. Defaults to Cookie. |
| TemporaryRedirectionUrlValidityDuration |
Gets or sets the lifetime of data protection validity for temporary redirection URLs emitted by Blazor server-side rendering. These are only used transiently so the lifetime only needs to be long enough for a client to receive the URL and begin navigation to it. However, it should also be long enough to allow for clock skew across servers. |