/// <summary> /// Gets the mapping that matches this service type and attribute type /// </summary> /// <param name="ServiceType">Service type</param> /// <param name="AttributeType">Attribute type</param> /// <returns>The mapping associated with this service type and attribute type</returns> public IMapping GetMapping(Type ServiceType, Type AttributeType) { MappingKey Key = new MappingKey(ServiceType, AttributeType, ProviderManager, this); return Mappings.FirstOrDefault(x => x.Equals(Key)); }
/// <summary> /// Gets the mapping that matches this service type /// </summary> /// <param name="ServiceType">Service type</param> /// <returns>The mapping associated with this service type</returns> public IMapping GetMapping(Type ServiceType) { MappingKey Key = new MappingKey(ServiceType, null, ProviderManager, this); return Mappings.Find(x => x.Equals(Key)); }