Open sandboxFocus

Constructor ManagedResourceIntroductionAspect

ManagedResourceIntroductionAspect(string, byte[])

Initializes a new instance of the ManagedResourceIntroductionAspect class by passing the data as a byte array.

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

Name of the managed resource.

byte[] data

Content of the managed resource.

ManagedResourceIntroductionAspect(string, Func<byte[]>)

Initializes a new instance of the ManagedResourceIntroductionAspect class by passing a delegate for late evaluation of the resource content.

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

Name of the managed resource.

Func<byte[]> dataProvider

A method that returns the data to be introduced. If the method returns null, the aspect is ignored and no managed resource is introduced.