Example #1
0
        public Target(IHost host, string dumpPath)
        {
            Trace.TraceInformation($"Creating target #{Id}");
            Host         = host;
            _dumpPath    = dumpPath;
            _disposables = new List <IDisposable>();

            OnFlushEvent = new ServiceEvent();

            // Initialize the per-target services
            ServiceProvider = new ServiceProvider(host.Services);

            // Add the per-target services
            ServiceProvider.AddService <ITarget>(this);
            ServiceProvider.AddServiceFactory <IRuntimeService>(() => new RuntimeService(this));
        }
Example #2
0
 public SymbolService(IHost host)
 {
     _host         = host;
     OnChangeEvent = new ServiceEvent();
 }