private void ConfigureWriterSettings(ODataSparqlServiceConfigurationSection serviceConfiguration) { BaseODataWriterSettings = new ODataMessageWriterSettings { Indent = serviceConfiguration.OutputConfiguration.Indent, Version = ODataVersion.V3 }; }
private static SparqlEndpointConfigurationElement FindEndpointConfiguration(string name, ODataSparqlServiceConfigurationSection serviceConfiguration) { var endpoint = serviceConfiguration.Endpoints.OfType <SparqlEndpointConfigurationElement>() .FirstOrDefault(ep => ep.Name.Equals(name)); if (endpoint == null) { throw new Exception("No configuration found for SPARQL service named " + name); } return(endpoint); }
private static SparqlEndpointConfigurationElement FindEndpointConfiguration(string name, ODataSparqlServiceConfigurationSection serviceConfiguration) { var endpoint = serviceConfiguration.Endpoints.OfType<SparqlEndpointConfigurationElement>() .FirstOrDefault(ep => ep.Name.Equals(name)); if (endpoint == null) { throw new Exception("No configuration found for SPARQL service named " + name); } return endpoint; }