C# 클래스 Cilador.Fody.Core.ModuleWeaver

The ModuleWeaver.Execute() method is invoked by Fody as a Visual Studio post-build step. This type serves to start the weaving process and to manage the configuration of the Fody weaver. It is also passed around as needed to other types in the aspect of a IWeavingContext.
상속: IDisposable, IPartImportsSatisfiedNotification, IWeavingContext
파일 보기 프로젝트 열기: rileywhite/Cilador 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Dispose void
ExtractWeaveAttributesByTargetTypes List>.Dictionary
FindAndInvokeWeavers void
GetWeaverFor IWeave
IPartImportsSatisfiedNotification void

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases resources used by the ModuleWeaver in a deterministic manner

Execute ( ) : void

Executes the Cilador code weaving logic.

When run as a Fody addin withing Visual Studio, Fody invokes this method after setting all configuration data.

ModuleWeaver ( ) : System

Creates a new ModuleWeaver.

ReadCiladorConfig ( System.Xml.Linq.XElement config ) : CiladorConfigType

Deserializes a CiladorConfigType from within a config. XElement

The configuration type, CiladorConfigType, is primarily generated from WeaveConfig.xsd.

비공개 메소드들

메소드 설명
Dispose ( bool isDisposing ) : void

Releases resources used by the ModuleWeaver

ExtractWeaveAttributesByTargetTypes ( ) : List>.Dictionary

Looks at all types within the target assembly, and collects any that are annotated with weave attributes. Weave command attributes are removed from types as they are gathered.

FindAndInvokeWeavers ( Mono.Cecil.TypeDefinition targetType, List weaveAttributes ) : void

Looks up commands indicated by weave attributes thorugh configuration, and then executes each command.

GetWeaverFor ( Mono.Cecil.TypeDefinition targetType, CustomAttribute weaveAttribute ) : IWeave

Finds the weave that corresponds to a given weave attribute for a type

IPartImportsSatisfiedNotification ( ) : void

Called by MEF when a part's imports have been satisfied and it is safe to use. For this type, it rebuilds some configuration information based on the imported weaver.

메소드 상세

Dispose() 공개 메소드

Releases resources used by the ModuleWeaver in a deterministic manner
public Dispose ( ) : void
리턴 void

Execute() 공개 메소드

Executes the Cilador code weaving logic.
When run as a Fody addin withing Visual Studio, Fody invokes this method after setting all configuration data.
public Execute ( ) : void
리턴 void

ModuleWeaver() 공개 메소드

Creates a new ModuleWeaver.
public ModuleWeaver ( ) : System
리턴 System

ReadCiladorConfig() 공개 정적인 메소드

Deserializes a CiladorConfigType from within a config. XElement
The configuration type, CiladorConfigType, is primarily generated from WeaveConfig.xsd.
public static ReadCiladorConfig ( System.Xml.Linq.XElement config ) : CiladorConfigType
config System.Xml.Linq.XElement Item that contains the serialized config element.
리턴 CiladorConfigType