Amazon.Internal.RegionEndpointProviderV2.RegionEndpoint.ReadEndpointFile C# (CSharp) Méthode

ReadEndpointFile() static private méthode

static private ReadEndpointFile ( Stream stream ) : void
stream Stream
Résultat void
            static void ReadEndpointFile(Stream stream)
            {
                using (var reader = new StreamReader(stream))
                {
                    var root = JsonMapper.ToObject(reader);
                    var endpoints = root["endpoints"];
                    foreach (var ruleName in endpoints.PropertyNames)
                    {
                        _documentEndpoints[ruleName] = endpoints[ruleName];
                    }
                }
            }