Forum Discussion

Nigel_Price9911's avatar
Nigel_Price9911
Iron Contributor
Oct 11, 2016

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