How to access settings.xml in Azure Service Fabric stateful/stateless service?
问题 How can I access and read parameters definied in PackageRoot/Settings/Settings.xml file from my stateful/stateless service code? For example I have a section DocumentDbConfig with Parameter EndpointUrl: <Section Name="DocumentDbConfig"> <Parameter Name="EndpointUrl" Value="{url}"/> </Section> And I would like to read it in my code: public async Task<ServiceActionResult<Result>> GetResult() { _client = new Client({{ EndpointUrl }}); //HOW TO GET ENDPOINT URL FROM SETTINGS? } 回答1: As long as