Skip to content

Serenity.Net.Web assembly

Serenity namespace

public type description
static class DataProtectorBinaryTokenExtensions Extension methods for IDataProtector to support tokens created via a BinaryWriter.
class HttpContextServiceProviderAccessor An IServiceProviderAccessor that uses the current HTTP request's scoped service provider when available, falling back to the root provider otherwise.
class ScriptCulture Culture options that are passed to the client side.

Serenity.ComponentModel namespace

public type description
class EmailEditorAttribute Email editor type with two inputs. Prefer EmailAddressEditorAttribute which uses a single input.

Serenity.Data namespace

public type description
static class ForXmlHelper Helper to generate T-SQL FOR XML RAW statements.

Serenity.Extensions.DependencyInjection namespace

public type description
static class ApplicationPartsServiceCollectionExtensions DI extension methods related to application parts and type source.
static class DynamicScriptServiceCollectionExtensions Contains DI extension methods related to dynamic script services.
static class EsBuildMinifierExtensions Extensions for adding EsBuild minifiers to an IServiceCollection.
static class HttpContextServiceCollectionExtensions DI extension methods related to the HTTP context.
static class NodeScriptRunnerExtensions Contains extension methods for NodeScriptRunner.
static class ServiceCollectionConfigureExtensions DI extension methods related to configuration and options
static class ServiceEndpointServiceCollectionExtensions DI extension methods related to service endpoints.
static class UploadServiceCollectionExtensions DI extension methods related to upload services.

Serenity.Navigation namespace

public type description
class NavigationHelper Contains helper methods for navigation models and items.
class NavigationLinkAttribute A navigation item with a link.

Serenity.Reporting namespace

public type description
class DefaultReportFactory Default implementation of IReportFactory.
class DefaultReportRenderer Default implementation of IReportRenderer.
class WKHtmlToPdf HTML to PDF converter class using WKHTMLToPdf.
class WKHtmlToPdfConverter Implementation of IWKHtmlToPdfConverter.
class WKHtmlToPdfSettings Set of WKHTMLToPdf settings.

Serenity.Services namespace

public type description
class AntiforgeryCookieResultFilterAttribute Appends the anti forgery token as a CSRF-TOKEN cookie to the response, so that AJAX calls can read it client side and send it as a header.
class AuthorizeCreateAttribute Authorizes access to a service method by reading one of InsertPermissionAttribute, ModifyPermissionAttribute or ReadPermissionAttribute from the target type, which is usually a Row class.
class AuthorizeDeleteAttribute Authorizes access to a service method by reading one of DeletePermissionAttribute, ModifyPermissionAttribute or ReadPermissionAttribute from the target type, which is usually a Row class.
class AuthorizeListAttribute Authorizes access to a service method by reading ReadPermissionAttribute. It also allows lookup mode access (as an OR permission) if the source type has ServiceLookupPermissionAttribute.
class AuthorizeRetrieveAttribute Authorizes retrieve access to a service method by reading ReadPermissionAttribute.
class AuthorizeUndeleteAttribute Authorizes access to a service method by reading one of UndeletePermissionAttribute, DeletePermissionAttribute, ModifyPermissionAttribute or ReadPermissionAttribute from the target type, which is usually a Row class.
class AuthorizeUpdateAttribute Authorizes access to a service method by reading one of UpdatePermissionAttribute, ModifyPermissionAttribute or ReadPermissionAttribute from the target type, which is usually a Row class.
static class EndpointExtensions Contains some extensions for service endpoints.
class FileUploadBehavior Behavior class that handles FileUploadEditorAttribute and ImageUploadEditorAttribute.
class HandleControllerExceptionAttribute An exception filter attribute to handle controller exceptions and return them as a view.
class HandleServiceExceptionAttribute An exception filter attribute to handle service exceptions and return them as ServiceResponse objects.
class JsonRequestAttribute An action filter for methods that accept JSON content via their "request" arguments.
class Result<TResponse> An action result type containing an object.
class ResultWithStatus<TResponse> An action result type containing an object with a status code.
class ServiceAuthorizeAttribute Authorizes access to a service action. Optionally checks the permission provided as the first argument. Use special permission key ? to check for logged-in users, and * to allow anyone including anonymous access. This returns a service error instead of raising an exception like PageAuthorizeAttribute.
abstract class ServiceEndpoint Subclass of controller for service endpoints.
class ServiceEndpointActionModelConvention Action model convention for ServiceEndpoint actions.
class ServiceEndpointApplicationModelProvider Applies action model conventions for ServiceEndpoint controllers.
class ServiceEndpointBindingMetadataProvider An IBindingMetadataProvider which configures ModelMetadata.IsBindingAllowed to false for IDbConnection and IUnitOfWork types.
class ServiceEndpointModelBinderProvider Provides model binding for service endpoints.
class ServiceEndpointNullModelBinder Null model binder for interface arguments.

Serenity.Web namespace

public type description
class AntiforgeryFilterOptions Options for AutoValidateAntiforgeryIgnoreBearerFilter.
class ApplicationPartsTypeSource Implementation of a type source that uses ApplicationPartManager to get assemblies. Note that it only includes assemblies that are marked with TypeSourceAssemblyAttribute, which is automatically added to assemblies that reference the Serenity.Net.Web NuGet package (or Serenity.Net.Web.targets).
class AutoValidateAntiforgeryIgnoreBearerAttribute An attribute that causes validation of antiforgery tokens for all unsafe HTTP methods. An antiforgery token is required for HTTP methods other than GET, HEAD, OPTIONS, and TRACE, and when there is no cookie header and authorization is Bearer, e.g. JWT.
abstract class BaseDynamicDataGenerator Base class for generating .json files under the dynamic-data folder for script testing purposes.
static class CheckTreeEditorTexts
static class ColumnPickerDialogTexts
class ColumnsScriptRegistration Contains registration methods for ColumnsScript types.
class ContentHashCache Default IContentHashCache implementation.
class CssBundleBuilder Default implementation of ICssBundleBuilder.
class CssBundleManager Default implementation of ICssBundleManager.
class CssBundlingOptions Options for CSS bundling.
class CssMinifyOptions Set of options for CSS minifying.
class CssMinifyResult Result returned from a CSS minifier.
static class DataGridTexts
class DataScriptRegistration Contains helper methods for data script registration.
static class DateTimeEditorTexts
class DefaultFileWatcherFactory Default implementation of IFileWatcherFactory that keeps created watchers alive for the lifetime of the factory.
class DefaultLocalTextInitializer Default ILocalTextInitializer that registers base texts and JSON texts from the App_Data/texts folder.
class DefaultUploadFileResponder Default implementation of the upload file responder.
class DefaultUploadStorage Default IUploadStorage implementation which uses a combined upload storage of two DiskUploadStorage instances.
static class DialogTexts
class DistinctValuesRegistration Contains helper methods for distinct values scripts.
class DistinctValuesScript<TRow> A dynamic script type for distinct values of a field.
class DynamicScriptManager Default implementation of IDynamicScriptManager.
static class EntityDialogTexts
static class EntityGridTexts
static class ExcelContentResult Excel content result helper methods.
class FeatureBarrierAttribute An attribute that can be placed on MVC controllers, controller actions, or Razor pages to require all or any of a set of features to be enabled. Note that if no IFeatureToggles service is registered, the feature barrier will always pass.
class FileWatcher Default file watcher implementation for the physical file system.
static class FilterPanelTexts
class FormScriptRegistration Contains registration methods for FormScript types.
static class FormValidationTexts
static class HtmlContentEditorTexts
static class HtmlCspExtensions Contains CSP related extension methods for HTML helpers and HTTP contexts.
static class HtmlImportMapExtensions Contains import map related extension methods for HTML helpers and HTTP contexts.
static class HtmlLayoutFilesExtensions Contains extensions for including layout CSS and JS files declared with LayoutCssFileAttribute / LayoutScriptFileAttribute.
static class HtmlScriptExtensions Contains Serenity related helper methods that can be used in Razor CSHTML files.
class HttpContextItemsAccessor Default implementation of IHttpContextItemsAccessor that reads the HttpContext items.
class HttpContextUserAccessor Default implementation of IUserAccessor that reads the current user from the HTTP context.
static class HttpRequestExtensions Contains HTTP request related extensions.
interface ICacheSuffix Abstraction to get the cache suffix used while generating the key for a cached dynamic script.
interface IContentHashCache An abstraction for a content hash cache, which contains hashes of web servable files.
interface ICssBundleBuilder Abstraction for building a CSS bundle from a list of source files.
interface ICssBundleManager Abstraction for a CSS bundling manager.
interface ICssMinifier Abstraction for a CSS minifier.
interface IDynamicScriptManager Dynamic script manager abstraction.
interface IFileWatcher Abstraction for a file system watcher.
interface IFileWatcherFactory An abstract factory for creating file system watchers.
interface ILayoutCssFileProvider Abstraction for a provider of layout CSS files declared with LayoutCssFileAttribute.
interface ILayoutScriptFileProvider Abstraction for a provider of layout script files declared with LayoutScriptFileAttribute.
interface IScriptBundleBuilder Abstraction for building a script bundle from a list of source files.
interface IScriptBundleManager Abstraction for a script bundling manager.
interface IScriptMinifier Abstraction for a script minifier.
interface IStartedProcess Abstraction for a started system process, so it can be replaced in tests.
interface IUploadFileResponder Abstraction for reading a file via /upload/path, e.g. the Read action in the FilePage.
interface IWebRootFileWatcher Provides change tokens for web files (under wwwroot or static web assets), usually only in development, by reusing physical file providers.
static class KnownMimeTypes Contains a set of known popular mime types.
class LayoutCssBundleScript A predefined dynamic CSS bundle that concatenates the layout CSS files declared with LayoutCssFileAttribute. It is registered under ScriptName at startup, so it can be referenced from a bundle definition (e.g. dynamic://CssBundle.LayoutCssFiles) or rendered with @Html.Stylesheet("dynamic://CssBundle.LayoutCssFiles").
class LayoutCssFileAttribute Declares a CSS file that should be included in the layout on every page, usually rendered with @Html.LayoutCssFiles(). This is intended for dynamically loaded libraries that need their navigation or layout styles to be available on all pages, without depending on a page specific entry point. The declared files are also exposed as a predefined dynamic bundle named ScriptName, which can be referenced from a bundle definition (e.g. dynamic://CssBundle.LayoutCssFiles). Note that the predefined bundle is generated once and cached, so it does not follow feature toggles dynamically; use @Html.LayoutCssFiles() for that.
class LayoutCssFileOptions Options for layout CSS files declared with LayoutCssFileAttribute.
class LayoutCssFileProvider Default implementation of ILayoutCssFileProvider, which discovers LayoutCssFileAttributes from the type source, filters them by the registered IFeatureToggles and an optional filter, and returns them ordered with duplicates removed.
class LayoutScriptBundleScript A predefined dynamic script bundle that concatenates the layout JS files declared with LayoutScriptFileAttribute. It is registered under ScriptName at startup, so it can be referenced from a bundle definition (e.g. dynamic://Bundle.LayoutScriptFiles) or rendered with @Html.Script("dynamic://Bundle.LayoutScriptFiles").
class LayoutScriptFileAttribute Declares a JS file that should be included in the layout on every page, usually rendered with @Html.LayoutScriptFiles(). This is intended for dynamically loaded libraries that need their scripts to be available on all pages, without depending on a page specific entry point. The declared files are also exposed as a predefined dynamic bundle named ScriptName, which can be referenced from a bundle definition (e.g. dynamic://Bundle.LayoutScriptFiles). Note that the predefined bundle is generated once and cached, so it does not follow feature toggles dynamically; use @Html.LayoutScriptFiles() for that.
class LayoutScriptFileOptions Options for layout script files declared with LayoutScriptFileAttribute.
class LayoutScriptFileProvider Default implementation of ILayoutScriptFileProvider, which discovers LayoutScriptFileAttributes from the type source, filters them by the registered IFeatureToggles and an optional filter, and returns them ordered with duplicates removed.
class LocalTextDataScript Local text data script to access local texts from an external app like mobile.
class LocalTextScript Local text dynamic script.
abstract class LookupScript Dynamic script type for lookup scripts.
class LookupScriptRegistration Contains helper methods for lookup script registration.
class NodeScriptRunner Executes the script entries defined in a package.json file, capturing any output written to stdio.
class NuglifyMinifier Default implementation of IScriptMinifier and ICssMinifier using the Nuglify library.
class PageAuthorizeAttribute Authorizes access to a controller action. Optionally checks the permission provided as the first argument. Use special permission key ? to check for logged-in users, and * to allow anyone including anonymous access.
static class PagerTexts
static class PropertyGridTexts
static class QuickSearchTexts
class RecaptchaPropertyProcessor Property processor that passes the recaptcha site key to the client side.
static class RecaptchaValidation Recaptcha validation extensions. This was written for a very old version of Google Recaptcha and might not work properly.
class RegisteredScripts A dynamic script type for registered scripts.
class RowLookupScript<TRow> Generic lookup script type for rows.
class ScriptBundleBuilder Default implementation of IScriptBundleBuilder.
class ScriptBundleManager Default implementation of IScriptBundleManager.
class ScriptBundlingOptions Options for script bundling.
class ScriptContent Default implementation of IScriptContent.
class ScriptMinifyOptions Set of options for script minifying.
class ScriptMinifyResult Result returned from a script minifier.
static class SelectEditorTexts
static class TemplateHelper Helper methods for CSHTML templating.
static class VirtualPathUtility Extension methods providing partial compatibility with the legacy VirtualPathUtility.
class WebRootFileWatcher Default implementation of IWebRootFileWatcher. It reuses physical file providers rooted at wwwroot / staticwebassets so that watching multiple files in the same directory does not create a new provider each time. Watching is only done in development.
static class WebTexts
class WebTypeSource Base type source for apps using the Serenity.Web assembly and its reference chain.

Serenity.Web.Middleware namespace

public type description
class DynamicScriptMiddleware Dynamic script middleware that handles /DynJS.axd/ and /DynamicData/ paths.

Serenity.Web.Providers namespace

public type description
static class SiteMembershipProvider Used to be a membership provider but now only contains a SHA512 helper.