I want to create a framework , which should be configurable through App.config. just like our WCF Host
To make it clear
I need to only write the 3 line to host the service with the below configuration
Type serviceType = typeof(DerivativesCalculatorServiceType);
ServiceHost host = new ServiceHost(serviceType))
host.Open();
WCF configuration
<configuration>
<system.serviceModel>
<services>
<service name="DerivativesCalculator.DerivativesCalculatorServiceType"
behaviorConfiguration="DerivativesCalculatorService">
<endpoint address="Calculator"
binding="basicHttpBinding"
contract="DerivativesCalculator.IDerivativesCalculator"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="DerivativesCalculatorService">
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
I want to know how is the binding object, endpoint object, Contract created internally by parsing the xml, because xml is strings, how is the corresponding objects or class created internally.
For example AddServiceEndpoint
AddServiceEndpoint(typeof(IDerivativesCalculator), basicHttpBindingObject, Address);
how is DerivativesCalculator.IDerivativesCalculator
from converted to IDerivativesCalculator