PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Type­Initialization­Manager Class / Type­Initialization­Manager Methods / Type­Initialization­Manager.​Register­Client Method / Type­Initialization­Manager.​Register­Client Method (Type­Def­Declaration, IType­Initialization­Client, Type­Initialization­Client­Scopes)

TypeInitializationManager.RegisterClient Method (TypeDefDeclaration, ITypeInitializationClient, TypeInitializationClientScopes)

Registers an ITypeInitializationClient for a given TypeDefDeclaration.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public void RegisterClient(
	TypeDefDeclaration typeDef,
	ITypeInitializationClient client,
	TypeInitializationClientScopes scopes
)

Parameters

typeDef
Type: PostSharp.Sdk.CodeModel.TypeDefDeclaration
The type to be enhanced.
client
Type: PostSharp.Sdk.AspectInfrastructure.ITypeInitializationClient
The ITypeInitializationClient emitting initialization instructions.
scopes
Type: PostSharp.Sdk.AspectInfrastructure.TypeInitializationClientScopes
Scopes for which the client is registered.
See Also