public static void Trace(TraceEventType type, int traceCode, string description, XmlQualifiedName bindingQname, XmlQualifiedName contractQname, System.Web.Services.Description.ServiceDescription wsdl, ContractDescription contract, System.ServiceModel.Channels.Binding binding, XmlSchemas schemas) { if (DiagnosticUtility.ShouldTrace(type)) { string name = "Service"; if (wsdl.Name != null) { name = wsdl.Name; } System.Type contractType = contract.ContractType; XmlQualifiedName serviceQname = new XmlQualifiedName(name, wsdl.TargetNamespace); foreach (System.Xml.Schema.XmlSchema schema in schemas) { ComPlusWsdlChannelBuilderSchema schema2 = new ComPlusWsdlChannelBuilderSchema(bindingQname, contractQname, serviceQname, (contractType != null) ? contractType.ToString() : null, (binding != null) ? binding.GetType().ToString() : null, schema); TraceUtility.TraceEvent(type, traceCode, System.ServiceModel.SR.GetString(description), (TraceRecord)schema2); } } }
public static void Trace(TraceEventType type, int traceCode, string description, XmlQualifiedName bindingQname, XmlQualifiedName contractQname, System.Web.Services.Description.ServiceDescription wsdl, ContractDescription contract, System.ServiceModel.Channels.Binding binding, XmlSchemas schemas) { if (DiagnosticUtility.ShouldTrace(type)) { string name = "Service"; if (wsdl.Name != null) { name = wsdl.Name; } System.Type contractType = contract.ContractType; XmlQualifiedName serviceQname = new XmlQualifiedName(name, wsdl.TargetNamespace); foreach (System.Xml.Schema.XmlSchema schema in schemas) { ComPlusWsdlChannelBuilderSchema schema2 = new ComPlusWsdlChannelBuilderSchema(bindingQname, contractQname, serviceQname, (contractType != null) ? contractType.ToString() : null, (binding != null) ? binding.GetType().ToString() : null, schema); TraceUtility.TraceEvent(type, traceCode, System.ServiceModel.SR.GetString(description), (TraceRecord) schema2); } } }
public static void Trace(TraceEventType type, int traceCode, string description, XmlQualifiedName bindingQname, XmlQualifiedName contractQname, WsdlNS.ServiceDescription wsdl, ContractDescription contract, Binding binding, XmlSchemas schemas) { if (DiagnosticUtility.ShouldTrace(type)) { string name = "Service"; if (wsdl.Name != null) name = wsdl.Name; Type contractType = contract.ContractType; XmlQualifiedName serviceName = new XmlQualifiedName(name, wsdl.TargetNamespace); foreach (XmlSchema schema in schemas) { ComPlusWsdlChannelBuilderSchema record = new ComPlusWsdlChannelBuilderSchema(bindingQname, contractQname, serviceName, (contractType != null) ? contractType.ToString() : null, (binding != null) ? (binding.GetType()).ToString() : null, schema); TraceUtility.TraceEvent(type, traceCode, ServiceModelSR.GetString(description), record); } } }