PostSharpAPI ReferencePost­Sharp.​Patterns.​RecordingRecorder­ProviderGet­Recorder
Open sandboxFocus

RecorderProvider.GetRecorder Method

GetRecorder(Object)

Gets the default Recorder for a given object. This method goes through the whole chain of responsibility.

Declaration
public Recorder GetRecorder(object obj)
Parameters
Type Name Description
Object obj

The object for which the default Recorder is required, or null if the global default provider (exposed for convenience on the DefaultRecorder) property if required.

Returns
Type Description
Recorder

The Recorder for obj, or null if no RecorderProvider in the chain of responsibility knows how to provide a Recorder for obj.