Forum Discussion
Nigel_Price9911
Oct 11, 2016Iron Contributor
What is the relationship between PnP Providers and Connectors ?
Hi
I understand this for loading and saving templates :-
// Save template using XML provider
XMLFileSystemTemplateProvider provider = new XMLFileSystemTemplateProvider(@"c:\temp\pnpprovisioningdemo", "");
string templateName = "template.xml";
provider.SaveAs(template, templateName);
// Load the saved model again
ProvisioningTemplate p2 = provider.GetTemplate(templateName);
// Get the available, valid templates
var templates = provider.GetTemplates();
foreach(var template1 in templates)
{
Console.WriteLine("Found template with ID {0}", template1.ID);
}
But where do Connectors fit in ?
Thanks
Nigel
2 Replies
- Ivan VaguninBrass ContributorConnectors implement basic stream IO operations for different location (e.g. FS, Azure Storage e.g.). Providers serialize (deserialize) templates based on streams they get from connectors.
- Nigel PriceIron Contributor
Thanks Иван Вагунин