Ejemplo n.º 1
0
        public ClrDump(DataTarget target, string dumpPath, MessageBus msgBus)
        {
            Id         = n++;
            Target     = target;
            DumpPath   = dumpPath;
            MessageBus = msgBus;
            worker     = new SingleThreadWorker(dumpPath);
            worker.Run(InitRuntime, OnError);

            ClrDumpInfo = ClrDumpInfo.Load(dumpPath);
        }
Ejemplo n.º 2
0
 public void Run(Action action)
 {
     if (worker.Active)
     {
         worker.Run(action);
     }
     else
     {
         throw new InvalidOperationException($"{Id}: can't run action because worker is not active !");
     }
 }