Esempio n. 1
0
 public ResourceType(IExportedTypeResolver typeResolver, Type type)
     : base(typeResolver, type)
 {
     this.uriBaseType = CreateLazy(() => typeResolver.LoadUriBaseType(this));
     this.resourceTypeDetails = CreateLazy(() => typeResolver.LoadResourceTypeDetails(this));
     this.uriGenerator = CreateLazy(() => BuildUriGenerator(this).Compile());
 }
Esempio n. 2
0
 public PropertyMapping(IExportedTypeResolver typeResolver,
     PropertyInfo propertyInfo,
     Func<TypeSpec> reflectedType = null)
     : base(typeResolver, propertyInfo, reflectedType)
 {
     this.exportedPropertyDetails = CreateLazy(() => typeResolver.LoadExportedPropertyDetails(this));
 }