PostSharp6.3/API Reference

API Reference

PostSharp is a design pattern automation tool for Microsoft .NET.
Namespaces
NamespaceDescription
PostSharp
This namespace of PostSharp.
PostSharp.Aspects
This namespace provides the primitives of the PostSharp aspect-oriented framework, such as abstract aspect classes, aspect interfaces, and advise argument classes.
PostSharp.Aspects.Advices
This namespace provides custom attributes that allow developing composite aspects with advices and pointcuts.
PostSharp.Aspects.Configuration
This namespace contains classes and custom attributes configuring the aspects of the PostSharp.Aspects namespace.
PostSharp.Aspects.Dependencies
This namespace contains types and custom attributes that allow to define dependencies between aspects and advices, so that the aspect weaver behaves determistically even if the same element of code is the target of several aspects provided by multiple vendors.
PostSharp.Aspects.Serialization
This namespace contains types taking care of the process of serializing aspects at build time and deserializing them at run time.
PostSharp.Collections
This namespace contains collection types used by the PostSharp library.
PostSharp.Constraints
This namespace allows you to validate your code against predefined or custom design rules.
PostSharp.Extensibility
This namespace defines the semantics of the attribute multicasting mechanism and exposes other types that allow user code to interact with the PostSharp,platform.
PostSharp.Extensibility.BuildTimeLogging
This namespace allows to emit build-time log records.
PostSharp.Patterns
This is the root namespace for all ready-made implementation of patterns.
PostSharp.Patterns.Caching
This namespace contains an API to cache method return values as a result of their arguments.
PostSharp.Patterns.Caching.Backends
This namespace contains implementations of adapters for specific caching back-ends.
PostSharp.Patterns.Caching.Backends.Azure
This namespace contains an implementation of PostSharp.Patterns.Caching for Microsoft Azure.
PostSharp.Patterns.Caching.Dependencies
This namespaces defines types that represent caching dependencies.
PostSharp.Patterns.Caching.Formatters
It seems this namespace contains just one type.
PostSharp.Patterns.Caching.Implementation
This namespace contains types that are useful when implementing an adapter for a caching back-end, but not when consuming the caching API.
PostSharp.Patterns.Caching.Locking
This namespaces implements the feature that can prevent concurrent execution of a cached method.
PostSharp.Patterns.Caching.Serializers
This namespace contains several serializers, whose role are to serialize cached objects into an array of bytes.
PostSharp.Patterns.Caching.ValueAdapters
This namespace contains the abstractions that allow to cache types like Stream or IEnumerable, which could not be cached without adaptation.
PostSharp.Patterns.Collections
This namespace defines collection classes that work with the Aggregatable pattern.
PostSharp.Patterns.Collections.Advices
This namespace defines the abstractions to define advices that can be dynamically added to advisable collections of the PostSharp.Patterns.Collections namespace.
PostSharp.Patterns.Contracts
This namespace contains ready-made contracts that validate fields, properties and parameters at runtime.
PostSharp.Patterns.Diagnostics
This namespace contains a logging aspect.
PostSharp.Patterns.Diagnostics.Audit
This namespace contains the abstractions for the audit feature, which is a special case of logging.
PostSharp.Patterns.Diagnostics.Backends
This namespace is the base for all adapters for back-end logging frameworks.
PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights
This namespace contains the implementation of the Microsoft Application Insights logging back-end.
PostSharp.Patterns.Diagnostics.Backends.Audit
This namespace contains the implementation of the audit logging back-end.
PostSharp.Patterns.Diagnostics.Backends.CommonLogging
This namespace contains the implementation of the Common,Logging back-end.
PostSharp.Patterns.Diagnostics.Backends.Console
This namespace contains the implementation of the system console logging back-end.
PostSharp.Patterns.Diagnostics.Backends.EnterpriseLibrary
This namespace contains the implementation of the Microsoft Enterprise Library logging back-end.
PostSharp.Patterns.Diagnostics.Backends.EventSource
This namespace contains the implementation of the System.Diagnostics.Tracing.EventSource logging back-end.
PostSharp.Patterns.Diagnostics.Backends.Log4Net
This namespace contains the implementation of the log4net logging back-end.
PostSharp.Patterns.Diagnostics.Backends.Loupe
This namespace contains the implementation of the Gibraltar Loupe logging back-end.
PostSharp.Patterns.Diagnostics.Backends.Microsoft
This namespace contains the implementation of the Microsoft.Extensions.Logging logging back-end.
PostSharp.Patterns.Diagnostics.Backends.NLog
This namespace contains the implementation of the NLog logging back-end.
PostSharp.Patterns.Diagnostics.Backends.Null
This namespace contains the implementation of the null logging back-end (which has no effect).
PostSharp.Patterns.Diagnostics.Backends.Serilog
This namespace contains the implementation of the Serilog logging back-end.
PostSharp.Patterns.Diagnostics.Backends.Trace
This namespace contains the implementation of the System.Diagnostics.Trace logging back-end.
PostSharp.Patterns.Diagnostics.Backends.TraceSource
This namespace contains the implementation of the System.Diagnostics.TraceSource logging back-end.
PostSharp.Patterns.Diagnostics.Contexts
This namespace implements different kinds of logging contexts.
PostSharp.Patterns.Diagnostics.Custom
This namespace contains the implementation of the custom logging front-end API. It is generally not needed in user code. It is normally not necessary to reference this namespace in user code, as the use of the var keyword is recommended.
PostSharp.Patterns.Diagnostics.Custom.Messages
This namespace contains the implementation of different message types used by the custom logging front-end API. It is normally not necessary to reference this namespace in user code, as the use of the var keyword is recommended.
PostSharp.Patterns.Diagnostics.Formatters
This namespace contains the implementation of formatters used in the context of logging.
PostSharp.Patterns.Diagnostics.RecordBuilders
This namespace contains the implementations of record builders (a concept similar to a StringWriter).
PostSharp.Patterns.Diagnostics.ThreadingInstrumentation
This namespaces contains aspects that instrument the System.Threading namespace.
PostSharp.Patterns.DynamicAdvising
This namespace defines the abstractions for dynamically advisable classes, i.e. classes of objects into which behaviors can be injected at run time.
PostSharp.Patterns.Formatters
This namespace contains the implementation of formatters for values of different types.
PostSharp.Patterns.Model
This namespace contains an implementation of the Observer, Aggregatable and Disposable patterns.
PostSharp.Patterns.Model.Controls
This namespaces contains XAML controls for the undo/redo feature.
PostSharp.Patterns.Model.TypeAdapters
This namespace defines abstractions that allow to use the Aggregatable pattern with third-party types.
PostSharp.Patterns.Recording
This namespace implements the undo/redo feature.
PostSharp.Patterns.Recording.Operations
This namespace defines recordable operations.
PostSharp.Patterns.Threading
This namespace contains an implementation of several threading models, and other thread dispatching aspects.
PostSharp.Patterns.Threading.Models
This namespace contains the implementation of different threading models.
PostSharp.Patterns.Utilities
This namespace contains unsorted types.
PostSharp.Patterns.Xaml
This namespace contains the implementation of XAML-specific namespace.
PostSharp.Reflection
This namespace.
PostSharp.Reflection.MethodBody
This namespace defines a code model that allows to represent a method body as a forest of expression trees.
PostSharp.Serialization
This namespace implements a portable serializer.