Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public FormMain()
        {
            InitializeComponent();

            TracerItemKeeperSink sink = new TracerItemKeeperSink(_tracer);

            sink.MaxItems = 1000000;
            _tracer.Add(sink);

            _watcher.NotifyFilter = NotifyFilters.Attributes | NotifyFilters.CreationTime | NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.Size;
            _watcher.Changed     += new FileSystemEventHandler(_watcher_Changed);
        }
Exemplo n.º 2
0
        private void Trace(string stream, bool recv)
        {
            string type = (recv ? "RECV" : "SEND");

            Dispatcher.BeginInvoke(new Action(() => {
                tracer.Add(new TraceStream(type, stream));
            }), DispatcherPriority.Normal);
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 public PlatformManagedExpert(ISourceAndExpertSessionManager manager, string name)
     : base(manager, name)
 {
     Manager.SessionsUpdateEvent += new GeneralHelper.GenericDelegate <ISourceAndExpertSessionManager>(SessionManager_SessionsUpdateEvent);
     _tracer.Add(new TracerItemKeeperSink(_tracer));
 }
 public override void OnDeserialization(object sender)
 {
     base.OnDeserialization(sender);
     _tracer = new Tracer();
     _tracer.Add(new TracerItemKeeperSink(_tracer));
 }
Exemplo n.º 5
0
 private void Log(string message)
 {
     Dispatcher.BeginInvoke(new Action(() => {
         logger.Add(new TraceLog(message));
     }), DispatcherPriority.Normal);
 }