public override IReadOnlyDictionary <string, IJLocalizationStore> Execute()
        {
            var localizedStore = new Dictionary <string, IJLocalizationStore>(StringComparer.OrdinalIgnoreCase);

            var resources = _httpConsumer.Resource("Values/en-IN")
                            .Get <Dictionary <string, string> >()
                            .BuildAsync()
                            .GetAwaiter()
                            .GetResult();

            localizedStore.AddJLocalization("en-IN", resources);

            resources = _httpConsumer.Resource("Values/en-US")
                        .Get <Dictionary <string, string> >()
                        .BuildAsync()
                        .GetAwaiter()
                        .GetResult();

            localizedStore.AddJLocalization("en-US", resources);
            return(localizedStore);
        }
Exemple #2
0
 public IHttpRequest Next(string resource, Action <HttpHeader> httpHeaderOptions = null)
 {
     ((HttpConsumer)_httpConsumer).AddHttpRequest(this);
     return(_httpConsumer.Resource(resource, httpHeaderOptions));
 }