Serenity.Net.Web assembly

Serenity namespace

signature name description
static class ArgumentExceptions This class contains methods for creating ArgumentException and subclasses while avoiding analyzer warnings regarding mismatched argument names.
static class DataProtectorBinaryTokenExtensions Extension methods for data protector to support tokens created via BinaryWriter
class ScriptCulture Culture options that are passed to the client side

Serenity.ComponentModel namespace

signature name description
class EmailEditorAttribute Email editor type with two inputs. Please prefer EmailAddressEditorAttribute which uses a single input.

Serenity.Data namespace

signature name description
static class ForXmlHelper Helper to generate T-SQL FOR XML RAW statements

Serenity.Extensions.DependencyInjection namespace

signature name description
static class ApplicationPartsServiceCollectionExtensions DI extension methods related to application part and type source
static class DynamicScriptServiceCollectionExtensions Contains DI extension methods related to dynamic script services
static class EsBuildMinifierExtensions Extensions for adding EsBuild minifiers to IServiceCollection.
static class NodeScriptRunnerExtensions Contains extensions 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

signature name description
class NavigationHelper Contains helper methods for navigation models and items
class NavigationLinkAttribute A navigation item with a link

Serenity.Reporting namespace

signature name description
class DefaultReportFactory Default implementation for IReportFactory
class DefaultReportRenderer Default implementation for IReportRenderer
class WKHtmlToPdf HTML to PDF converter class using WKHTMLToPdf
class WKHtmlToPdfConverter Implementation for IWKHtmlToPdfConverter
class WKHtmlToPdfSettings Set of WKHTMLToPdf settings

Serenity.Services namespace

signature name description
class AntiforgeryCookieResultFilterAttribute Append the anti forgery token as CSRF-TOKEN cookie to the response, so that AJAX calls can read it client side and send 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 OrPermission) if the source type has ServiceLookupPermissionAttribute
class AuthorizeRetrieveAttribute Authorizes retrieve access to a service method by reading ReadPermissionAttribute. ServiceLookupPermissionAttribute
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 as view.
class HandleServiceExceptionAttribute An exception filter attribute to handle service exceptions and return them to 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 a object
class ResultWithStatus<TResponse> An action result type containing a object with 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 PageAuthorize attribute.
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

signature name description
class AntiforgeryFilterOptions Options for AutoValidateAntiforgeryIgnoreBearerFilter.
class ApplicationPartsTypeSource Implementation for 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 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 etc.
abstract class BaseDynamicDataGenerator Base class for generating .json files under 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 CssBundleManager Default implementation for 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 for IFileWatcherFactory
class DefaultLocalTextInitializer Default local text initializer
class DefaultUploadFileResponder Default implementation for 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 for 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 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 HtmlScriptExtensions Contains Serenity related helper methods that can be used in Razor CSHTML files
class HttpContextItemsAccessor Default implementation for IHttpContextItemsAccessor using IHttpContextAccessor and its Items property.
class HttpContextUserAccessor Default implementation of IUserAccessor for HTTP context
static class HttpRequestExtensions Contains HTTP request related extensions
interface ICacheSuffix Abstraction to get cache suffix used while generating key for a cached dynamic script
interface IContentHashCache An abstraction for content hash cache, which contains hashes of web servable files.
interface ICssBundleManager Abstraction for css bundling manager
interface ICssMinifier Abstraction for Css minifier
interface IDynamicScriptManager Dynamic script manager abstraction
interface IFileWatcher File system watcher abstraction
interface IFileWatcherFactory An abstract factory to create file system watchers
interface IScriptBundleManager Abstraction for script bundling manager
interface IScriptMinifier Abstraction for script minifier
interface IUploadFileResponder Abstraction for reading a file via /upload/path, e.g. the Read action in the FilePage
static class KnownMimeTypes Contains set of known popular mime types
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 ICssMinifer interfaces with 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 to pass recaptcha site key to client side
static class RecaptchaValidation Recaptcha validation extensions. This was written for a very old version of Google Recaptcha and might not be working properly.
class RegisteredScripts A dynamic script type for registered scripts
class RowLookupScript<TRow> Generic lookup script type for rows
class ScriptBundleManager Default implementation for IScriptBundleManager
class ScriptBundlingOptions Options for script bundling
class ScriptContent Default implementation for 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 legacy VirtualPathUtility.
static class WebTexts
class WebTypeSource Base type source for apps using Serenity.Web assembly and its reference chain

Serenity.Web.Middleware namespace

signature name description
class DynamicScriptMiddleware Dynamic script middleware that handles "/DynJS.axd/" and "/DynamicData/" paths.

Serenity.Web.Providers namespace

signature name description
static class SiteMembershipProvider Used to be a membership provider but now only contains a SHA512 helper