Ejemplo n.º 1
0
        public App()
        {
            var authService = new AuthService();
            var dataService = new DataService();

            var effects = UserEffects.GetAll(authService)
                          .Concat(DataEffects.GetAll(dataService))
                          .Concat(MessageEffects.GetAll());

            Store = Store.Create()
                    .WithState(DataState.Initial(), DataStateReducer.Function)
                    .WithState(UserState.Initial(), new UserStateReducer())
                    .WithEffects(effects);
        }