PostSharpAPI ReferencePost­Sharp.​Aspects.​ConfigurationManaged­Resource­Introduction­Aspect­ConfigurationManaged­Resource­Introduction­Aspect­Configuration
Open sandboxFocus

ManagedResourceIntroductionAspectConfiguration Constructor

ManagedResourceIntroductionAspectConfiguration(String, Byte[])

Declaration
public ManagedResourceIntroductionAspectConfiguration(string name, byte[] data)
Parameters
Type Name Description
String name

Name of the managed resource.

System.Byte[] data

Content of the managed resource.

ManagedResourceIntroductionAspectConfiguration(String, Func<Byte[]>)

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

Declaration
public ManagedResourceIntroductionAspectConfiguration(string name, Func<byte[]> dataProvider)
Parameters
Type Name Description
String name

Name of the managed resource.

Func<System.Byte[]> dataProvider

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.