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()); }
public PropertyMapping(IExportedTypeResolver typeResolver, PropertyInfo propertyInfo, Func<TypeSpec> reflectedType = null) : base(typeResolver, propertyInfo, reflectedType) { this.exportedPropertyDetails = CreateLazy(() => typeResolver.LoadExportedPropertyDetails(this)); }