Esempio n. 1
0
        public LoginController(IEventAggregator eventAggregator, ViewOrchestrator orchestrator)
        {
            this.eventAggregator = eventAggregator;
            this.viewOrchestrator = orchestrator;
            this.eventAggregator.GetEvent<AuthenticationEvent>().Subscribe(RaiseAuthentification, true);

            // Temporary added subscription on logout
            WebContextBase.Current.Authentication.LoggedOut += Authentication_LoggedOut;
        }
Esempio n. 2
0
 public ApplicationController(ViewOrchestrator orchestrator, IEventAggregator aggregator)
 {
     this.viewOrchestrator = orchestrator;
     this.eventAggregator = aggregator;
     this.RegisterSubcriptions();
 }