public StartProfilingSessionRequestHandler(ConfigurationCollection configurations, SessionCollection sessions, FrameworkCollection frameworks, ProfilingTypeCollection profilingTypes, ProfilingTargetCollection profilingTargets) { _configurations = configurations; _sessions = sessions; _frameworks = frameworks; _profilingTypes = profilingTypes; _profilingTargets = profilingTargets; Uid = new Guid("B68D7CDC-E999-416A-A9D0-E4A22D243E5F"); }
protected override void RunInternal() { _hostApplications = new Host.ApplicationCollection(); _profilingTypes = new ProfilingTypeCollection(Catalog.ProfilingTypes, ExportLoader, ApplicationCode, _hostApplications); _frameworks = new FrameworkCollection(Catalog.Frameworks, ExportLoader, ApplicationCode, _hostApplications); _profilingTargets = new ProfilingTargetCollection(Catalog.ProfilingTargets, ExportLoader, ApplicationCode, _hostApplications); _productivities = new ProductivityCollection(Catalog.Productivities, ExportLoader, ApplicationCode); _profilingTypes.SetupDependencies(_frameworks); _frameworks.SetupDependencies(_profilingTypes); _configurations = new ConfigurationCollection(_hostApplications); _sessions = new SessionCollection(_hostApplications); }
protected override void RunInternal() { _frameworks = new FrameworkCollection(Catalog.Frameworks, ExportLoader); _profilingTypes = new ProfilingTypeCollection(Catalog.ProfilingTypes, ExportLoader); _profilingTargets = new ProfilingTargetCollection(Catalog.ProfilingTargets, ExportLoader); _configurations = new ConfigurationCollection(_profilingTargets, _frameworks, this); _sessions = new SessionCollection(this); _requestServer = new RequestServer(); _requestServer.RegisterHandler(new StartProfilingSessionRequestHandler( _configurations, _sessions, _frameworks, _profilingTypes, _profilingTargets)); //TODO: Host must listen all possible types of streams (NamePipes, SharedMemory, RPC) _ //TODO: _ because agents may use different transports, depending on apps they profile IServerStream serverStream = Connector.Native.StreamFactory.CreateInvokeStream(); _requestServer.Run(serverStream); ServiceContainer.Register(new Remote.IO.FileSystemAccessor(true)); }