PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Recording Namespace / Recording­Services Class / Recording­Services Properties / Recording­Services.​Recorder­Provider Property

RecordingServices.RecorderProvider Property

Gets or sets the RecorderProvider, which provides the default Recorder for recordable objects that have the AutoRecord property set to true (which is the default value).

Namespace:  PostSharp.Patterns.Recording
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 2023.0.3.0 (2023.0.3.0)
public static RecorderProvider RecorderProvider { get; set; }

Property Value

Type: RecorderProvider

This property is the head of a chain of responsibility. If you set this property to a new value, you typically have to pass the previous value of this property to the constructor of your custom RecorderProvider.

The default implementation unconditionally returns a single global instance of the Recorder class.

See Also