ADCImportExport.Program.AzureDataCatalog.AzureDataCatalog C# (CSharp) 메소드

AzureDataCatalog() 공개 메소드

public AzureDataCatalog ( ) : System
리턴 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);
            }