public ManifestCache(string filename, string workFolder, ICollection <ProviderDefinitionDescription> providers) { this.providers = new Dictionary <Guid, ProviderDefinition>(); this.guids = new Dictionary <string, List <Guid> >(); this.dynamicManifestFolder = Path.Combine(workFolder, DynamicManifestFolderName); Directory.CreateDirectory(this.dynamicManifestFolder); this.LoadDynamicManifests(); this.AddProviders(filename, providers); this.partialManifest = new PartialManifestInfo(); }
public ManifestCache(IDictionary <Guid, ProviderDefinition> providers, IDictionary <string, List <Guid> > guids) { this.providers = new Dictionary <Guid, ProviderDefinition>(); this.guids = new Dictionary <string, List <Guid> >(); foreach (KeyValuePair <Guid, ProviderDefinition> provider in providers) { this.providers.Add(provider.Key, new ProviderDefinition(provider.Value.Description)); } foreach (KeyValuePair <string, List <Guid> > guid in guids) { this.guids.Add(guid.Key, new List <Guid>(guid.Value)); } this.partialManifest = new PartialManifestInfo(); }
internal ManifestCache(Dictionary <Guid, ProviderDefinition> providers, Dictionary <string, List <Guid> > guids) { this.providers = providers; this.guids = guids; this.partialManifest = new PartialManifestInfo(); }