Exemple #1
0
        public ApplicationContext(
            Authorizer authorizer,
            Navigator navigator,
            MainContextFactory mainContextFactory,
            AuthorizationContextFactory authorizationContextFactory
            )
        {
            _authorizer                  = authorizer;
            _navigator                   = navigator;
            _mainContextFactory          = mainContextFactory;
            _authorizationContextFactory = authorizationContextFactory;

            _authorizationStateSubscription = _authorizer
                                              .States()
                                              .Subscribe(ObserveAuthorizationNavigation);

            _boardNavigationSubscription = _navigator
                                           .BoardNavigations()
                                           .Subscribe(ObserveBoardNavigation);
        }