PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Profile­Repository Class / Logging­Profile­Repository Methods / Logging­Profile­Repository.​Register­Profile Method

LoggingProfileRepository.RegisterProfile Method

Register a LoggingProfile. This method is invoked by the code generated by PostSharp.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public void RegisterProfile(
	string name,
	Assembly assembly,
	LoggingProfile profile
)

Parameters

name
Type: System.String
Name of the profile.
assembly
Type: System.Reflection.Assembly
Assembly in which the profile is defined.
profile
Type: PostSharp.Patterns.Diagnostics.LoggingProfile
The profile itself.
See Also