Ejemplo n.º 1
0
        void AddExternalDomain()
        {
            var serverDto = GetServerDto();
            var form      = new AddExternalDomain()
            {
                ServerDto = serverDto, TenantName = _tenantName
            };
            var dataContext = SnapInContext.Instance.NavigationController.NavigateToView(this, form);

            DoRefresh();
        }
Ejemplo n.º 2
0
        protected override void OnAction(Action action, AsyncStatus status)
        {
            var serverDto = GetServerDTO();
            var auth      = SnapInContext.Instance.AuthTokenManager.GetAuthToken(serverDto, _tenantName);

            ActionHelper.Execute(delegate()
            {
                switch ((ExternalDomainNodeAction)(int)action.Tag)
                {
                case ExternalDomainNodeAction.ActionProperties:
                    var form = new AddExternalDomain()
                    {
                        ServerDto = serverDto, TenantName = _tenantName, IdentityProviderDto = _provider
                    };
                    var dataContext = SnapInContext.Instance.NavigationController.NavigateToView(this, form);
                    (Parent as ExternalDomainsNode).DoRefresh();
                    break;
                }
            }, auth);
        }