Example #1
0
 public DiscoveredPart(
     TypeInfo partType,
     AttributedModelProvider attributeContext,
     ActivationFeature[] activationFeatures)
 {
     _partType = partType;
     _attributeContext = attributeContext;
     _activationFeatures = activationFeatures;
     _partMetadata = new Lazy<IDictionary<string, object>>(() => GetPartMetadata(partType));
 }
Example #2
0
 private DiscoveredPart(
     TypeInfo partType,
     AttributedModelProvider attributeContext,
     ActivationFeature[] activationFeatures,
     Lazy<IDictionary<string, object>> partMetadata)
 {
     _partType = partType;
     _attributeContext = attributeContext;
     _activationFeatures = activationFeatures;
     _partMetadata = partMetadata;
 }
Example #3
0
 public TypeInspector(AttributedModelProvider attributeContext, ActivationFeature[] activationFeatures)
 {
     _attributeContext = attributeContext;
     _activationFeatures = activationFeatures;
 }