Ejemplo n.º 1
0
        public LogViewModel(
            ILoggerService loggerService
            ) : base(ToolTitle)
        {
            _loggerService = loggerService ?? ServiceLocator.Default.ResolveType <ILoggerService>();

            SetupToolDefaults();

            //filter, sort and populate reactive list,
            _loggerService.Connect() //connect to the cache
            .ObserveOn(RxApp.MainThreadScheduler)
            .Bind(out _logEntries)
            .Subscribe();
        }