ExportServiceConfiguration attribute allows to extend or completely replace web.config and app.config file configuration. Implement class with IServiceConfiguration inteface and mark class using ExportServiceConfiguration attribute. You can use serviceType argument to control, to which service will be the configuration applied. null value means the configuration will be applied to all discovered services.

[ExportServiceConfiguration(typeof(SampleService))]
public class SampleServiceConfiguration : IServiceConfiguration
{
    // implementation here
}

Last edited Jan 9, 2014 at 10:36 PM by kovalikp, version 3