Exemple #1
0
 /// <summary>
 /// Construtor padrão.
 /// </summary>
 /// <param name="memberGetter">Referencia do método usado para recuperar o membro.</param>
 /// <param name="exportDescription"></param>
 /// <param name="creationPolicy">Política de criação.</param>
 public ProviderExportDefinition(Func <System.Reflection.MemberInfo> memberGetter, ExportDescription exportDescription, System.ComponentModel.Composition.CreationPolicy creationPolicy) : base(CompositionServices.GetContractNameFromExportDescription(memberGetter, exportDescription), CompositionServices.GetMetadataFromExportDescription(memberGetter, exportDescription, creationPolicy))
 {
     memberGetter.Require("member").NotNull();
     exportDescription.Require("exportDescription").NotNull();
     _memberGetter = memberGetter;
 }