Exemple #1
0
        public StitchesService(CrossStitchCore core, IDataRepository data, StitchFileSystem fileSystem, StitchInstanceManager stitchInstanceManager, IModuleLog log, IStitchEventNotifier notifier)
        {
            _fileSystem = fileSystem;
            _data       = data;
            _core       = core;
            _notifier   = notifier;
            _log        = log;

            _stitchInstanceManager = stitchInstanceManager;
        }
Exemple #2
0
        public StitchesService(CrossStitchCore core, IDataRepository data, StitchFileSystem fileSystem, StitchInstanceManager stitchInstanceManager, StitchEventObserver observer, IModuleLog log, IStitchEventNotifier notifier)
        {
            _fileSystem = fileSystem;
            _data       = data;
            _core       = core;
            _notifier   = notifier;
            _log        = log;

            _stitchInstanceManager = stitchInstanceManager;
            _stitchInstanceManager.StitchStateChange       += observer.StitchInstancesOnStitchStateChanged;
            _stitchInstanceManager.HeartbeatReceived       += observer.StitchInstanceManagerOnHeartbeatReceived;
            _stitchInstanceManager.LogsReceived            += observer.StitchInstanceManagerOnLogsReceived;
            _stitchInstanceManager.RequestResponseReceived += observer.StitchInstanceManagerOnRequestResponseReceived;
            _stitchInstanceManager.DataMessageReceived     += observer.StitchInstanceManagerOnDataMessageReceived;
        }