コード例 #1
0
        public FiltersViewModel(RawLog logFile)
        {
            AndFilters = new ObservableCollection<Filter>();
            LogView = new LogViewModel(this, logFile);
            Groups = new List<int>();
            Filters = new ObservableCollection<Filter>
            {
                Filter.S1(x => x.Method == @"Hub-OnDisconnected" && x.MethodAttr == "start"),
                Filter.S1(x => x.Method == @"HubAgent-SubscriptionDisconnected"),
                Filter.S1(x => x.Method == @"HubAgent-Signal_Subscribed" && x.MethodAttr == "start"),
                Filter.S1(x => x.Method == @"HubAgent-SubscribeCustomerAsync"),
                Filter.S1(x => x.Line.Contains(@"Message:Account is in active collaboration"))
            };

            for (var i = 0; i < logFile.GroupsCount; i++)
                Groups.Add(i);

            DoFilter();

            IoC.Get<IWindowManager>().ShowWindow(LogView);
        }
コード例 #2
0
        public FiltersViewModel(RawLog logFile)
        {
            AndFilters = new ObservableCollection <Filter>();
            LogView    = new LogViewModel(this, logFile);
            Groups     = new List <int>();
            Filters    = new ObservableCollection <Filter>
            {
                Filter.S1(x => x.Method == @"Hub-OnDisconnected" && x.MethodAttr == "start"),
                Filter.S1(x => x.Method == @"HubAgent-SubscriptionDisconnected"),
                Filter.S1(x => x.Method == @"HubAgent-Signal_Subscribed" && x.MethodAttr == "start"),
                Filter.S1(x => x.Method == @"HubAgent-SubscribeCustomerAsync"),
                Filter.S1(x => x.Line.Contains(@"Message:Account is in active collaboration"))
            };

            for (var i = 0; i < logFile.GroupsCount; i++)
            {
                Groups.Add(i);
            }

            DoFilter();

            IoC.Get <IWindowManager>().ShowWindow(LogView);
        }