/// <summary> /// Creates a logging interface for the specified source /// </summary> public static Tracer GetTracer(Type sourceType, OpenIZConfiguration configuration) { var retVal = new Tracer(sourceType.FullName); retVal.m_writers = new List <TraceWriter> (configuration.GetSection <DiagnosticsConfigurationSection> ()?.TraceWriter.Select(o => o.TraceWriter)); return(retVal); }
/// <summary> /// Gets the service description. /// </summary> /// <returns>The service description.</returns> /// <param name="me">Me.</param> public static ServiceClientDescription GetServiceDescription(this OpenIZConfiguration me, String clientName) { var configSection = me.GetSection <ServiceClientConfigurationSection>(); return(configSection.Client.Find(o => clientName == o.Name)?.Clone()); }