예제 #1
0
        public ProjectManager(
            int contextId,
            DesignTimeWorkspace workspaceContext,
            ProtocolManager protocolManager)
        {
            Id = contextId;
            _workspaceContext = workspaceContext;
            _protocolManager  = protocolManager;

            _messengers = new List <Messenger <ProjectContextSnapshot> >
            {
                new ReferencesMessenger(Transmit),
                new DependenciesMessenger(Transmit),
                new DependencyDiagnosticsMessenger(Transmit),
                new CompilerOptionsMessenger(Transmit),
                new SourcesMessenger(Transmit)
            };

            _projectDiagnosticsMessenger = new ProjectDiagnosticsMessenger(Transmit);
            _globalErrorMessenger        = new GlobalErrorMessenger(Transmit);
            _projectInforamtionMessenger = new ProjectInformationMessenger(Transmit);
        }
예제 #2
0
        public ProjectContextManager(int contextId,
                                     ILoggerFactory loggerFactory,
                                     WorkspaceContext workspaceContext,
                                     ProtocolManager protocolManager)
        {
            Id   = contextId;
            _log = loggerFactory.CreateLogger <ProjectContextManager>();
            _workspaceContext = workspaceContext;
            _protocolManager  = protocolManager;

            _messengers = new List <Messenger <ProjectSnapshot> >
            {
                new DependencyDiagnosticsMessenger(Transmit),
                new DependenciesMessenger(Transmit),
                new CompilerOptionsMessenger(Transmit),
                new ReferencesMessenger(Transmit),
                new SourcesMessenger(Transmit)
            };

            _projectDiagnosticsMessenger = new ProjectDiagnosticsMessenger(Transmit);
            _globalErrorMessenger        = new GlobalErrorMessenger(TransmitDiagnostics);
            _projectInforamtionMessenger = new ProjectInformationMessenger(Transmit);
        }