public AppRoleSampleManager(AppRoleHelper appRoleHelper)
        {
            _AppRoleHelper     = appRoleHelper;
            IsAppRoleRetrieved = false;
            IsAppRoleSet       = false;

            _sharedFrameworkReader = new SharedFrameworkReader(appRoleHelper.GatewayTokenUri);
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            ConnectivitySettings.Server         = ConfigurationManager.AppSettings.Get("server");
            ConnectivitySettings.Port           = ConfigurationManager.AppSettings.Get("port");
            ConnectivitySettings.Database       = ConfigurationManager.AppSettings.Get("database");
            ConnectivitySettings.GatewayRestApi = ConfigurationManager.AppSettings.Get("gatewayrestapi");
            ConnectivitySettings.GatewaySoapApi = ConfigurationManager.AppSettings.Get("gatewayrestapi");
            ConnectivitySettings.DSNName        = ConfigurationManager.AppSettings.Get("dsnname");

            ConnectivitySettings.Authority        = ConfigurationManager.AppSettings.Get("authority");
            ConnectivitySettings.ClientIdentifier = ConfigurationManager.AppSettings.Get("clientIdentifier");
            ConnectivitySettings.ClientSecret     = ConfigurationManager.AppSettings.Get("clientSecret");
            ConnectivitySettings.GatewayTokenUri  = ConfigurationManager.AppSettings.Get("gatewayTokenUri");
            ConnectivitySettings.Scope            = ConfigurationManager.AppSettings.Get("scope");

            AppRoleHelper appRoleHelper = new AppRoleHelper(ConnectivitySettings.GatewayTokenUri);

            _appRoleManager = new AppRoleSampleManager(appRoleHelper);

            SetInitialControlState();
        }