PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects.​Configuration Namespace / Managed­Resource­Introduction­Aspect­Configuration Class / Managed­Resource­Introduction­Aspect­Configuration Constructor / Managed­Resource­Introduction­Aspect­Configuration Constructor (String, Func(Byte[]))

ManagedResourceIntroductionAspectConfiguration Constructor (String, Func<Byte[]>)

Initializes a new ManagedResourceIntroductionAspectConfiguration by passing a delegate for late evaluation of the resource content.

Namespace:  PostSharp.Aspects.Configuration
Assembly:  PostSharp (in PostSharp.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public ManagedResourceIntroductionAspectConfiguration(
	string name,
	Func<byte[]> dataProvider
)

Parameters

name
Type: System.String
Name of the managed resource.
dataProvider
Type: System.Func<Byte[]>
A method that returns the data to be introduced. If the method returns null, the aspect will be ignored and no managed resource will be introduced.
See Also