void EnsureParsed() { if (parser == null) { parser = new ServiceParser(VirtualPath, this); parser.Parse(ReferencedAssemblies); } }
private void EnsureParsed() { if (this.parser == null) { this.parser = new ServiceParser(base.VirtualPath, this); this.parser.Parse(base.ReferencedAssemblies); } }
internal static IDictionary <string, string> ParseServiceDirective(string serviceText) { ServiceParser parser = new ServiceParser(serviceText); parser.ParseString(); IDictionary <string, string> dictionary = new Dictionary <string, string>(StringComparer.OrdinalIgnoreCase); if (!string.IsNullOrEmpty(parser.factoryAttributeValue)) { dictionary.Add("Factory", parser.factoryAttributeValue); } if (!string.IsNullOrEmpty(parser.serviceAttributeValue)) { dictionary.Add("Service", parser.serviceAttributeValue); } return(dictionary); }
/// <summary> /// Parsing the content of the service file and retrieve the serviceAttributeValue attribute for ComPlus. /// </summary> /// <param name="serviceText">The content of the service file.</param> /// <returns>The "serviceAttributeValue" attribute of the Service directive. </returns> /// <exception cref="System.Web.HttpParseException"/> internal static IDictionary <string, string> ParseServiceDirective(string serviceText) { ServiceParser parser = new ServiceParser(serviceText); parser.ParseString(); // the list of valid attributes for ComPlus for Service Directive IDictionary <string, string> attributeTable = new Dictionary <string, string>( StringComparer.OrdinalIgnoreCase); if (!string.IsNullOrEmpty(parser.factoryAttributeValue)) { attributeTable.Add(FactoryAttributeName, parser.factoryAttributeValue); } if (!string.IsNullOrEmpty(parser.serviceAttributeValue)) { attributeTable.Add(ServiceAttributeName, parser.serviceAttributeValue); } return(attributeTable); }
internal static IDictionary<string, string> ParseServiceDirective(string serviceText) { ServiceParser parser = new ServiceParser(serviceText); parser.ParseString(); IDictionary<string, string> dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); if (!string.IsNullOrEmpty(parser.factoryAttributeValue)) { dictionary.Add("Factory", parser.factoryAttributeValue); } if (!string.IsNullOrEmpty(parser.serviceAttributeValue)) { dictionary.Add("Service", parser.serviceAttributeValue); } return dictionary; }
/// <summary> /// Parsing the content of the service file and retrieve the serviceAttributeValue attribute for ComPlus. /// </summary> /// <param name="serviceText">The content of the service file.</param> /// <returns>The "serviceAttributeValue" attribute of the Service directive. </returns> /// <exception cref="System.Web.HttpParseException"/> internal static IDictionary<string, string> ParseServiceDirective(string serviceText) { ServiceParser parser = new ServiceParser(serviceText); parser.ParseString(); // the list of valid attributes for ComPlus for Service Directive IDictionary<string, string> attributeTable = new Dictionary<string, string>( StringComparer.OrdinalIgnoreCase); if (!string.IsNullOrEmpty(parser.factoryAttributeValue)) attributeTable.Add(FactoryAttributeName, parser.factoryAttributeValue); if (!string.IsNullOrEmpty(parser.serviceAttributeValue)) attributeTable.Add(ServiceAttributeName, parser.serviceAttributeValue); return attributeTable; }