ADCImportExport.Program.AzureDataCatalog.AzureDataCatalog C# (CSharp) Méthode

AzureDataCatalog() public méthode

public AzureDataCatalog ( ) : System
Résultat System
            public AzureDataCatalog()
            {
                //NOTE: You must fill in the App.Config with the following three settings. The first two are values that you received registered your application with AAD. The 3rd setting is always the same value.:
                //< ADCImportExport.Properties.Settings >
                //    <setting name = "ClientId" serializeAs = "String">
                //           <value></value>
                //       </setting>
                //       <setting name = "RedirectURI" serializeAs = "String">
                //              <value> https://login.live.com/oauth20_desktop.srf</value>
                //    </setting>
                //    <setting name = "ResourceId" serializeAs = "String">
                //           <value> https://datacatalog.azure.com</value>
                //    </setting>
                //</ADCImportExport.Properties.Settings>

                ClientId = ADCImportExport.Properties.Settings.Default.ClientId;
                RedirectUri = new Uri(ADCImportExport.Properties.Settings.Default.RedirectURI);

                CatalogName = "DefaultCatalog";

                auth = AuthContext.AcquireToken("https://api.azuredatacatalog.com", ClientId, RedirectUri, PromptBehavior.Always);
            }