/// <summary> /// </summary> /// <param name="serviceElement"></param> /// <param name="serviceImplementatipnLocation"></param> /// <exception cref="ConfigurationParseException">Always throws this exception.</exception> private string ThrowOnProhibitedServiceType([NotNull] IServiceElement serviceElement, string serviceImplementatipnLocation) { throw new ConfigurationParseException(serviceElement, $"Type '{serviceElement.ServiceTypeInfo.TypeCSharpFullName}' cannot be used a service type in 'service' element. An implementation for interface '{serviceElement.ServiceTypeInfo.TypeCSharpFullName}'should be defined in element '{serviceImplementatipnLocation}'.", this); }
public ValueBasedServiceImplementationElement([NotNull] XmlElement xmlElement, [NotNull] IServiceElement parentServiceElement) : base(xmlElement, parentServiceElement) { ServiceElement = parentServiceElement; }