public StitchInstanceManager(StitchesConfiguration configuration, StitchFileSystem fileSystem) { _fileSystem = fileSystem; // TODO: We need a way to get the unique string name of the node at this point. _adaptorFactory = new StitchAdaptorFactory(configuration, _fileSystem); _adaptors = new StitchAdaptorCollection(); }
public StitchInstanceManager(StitchFileSystem fileSystem, StitchAdaptorFactory adaptorFactory) { _fileSystem = fileSystem; // TODO: We need a way to get the unique string name of the node at this point. _adaptorFactory = adaptorFactory; _adaptors = new StitchAdaptorCollection(); }
public StitchesModule(CrossStitchCore core, StitchesConfiguration configuration = null) { configuration = configuration ?? StitchesConfiguration.GetDefault(); var log = new ModuleLog(core.MessageBus, Name); var data = new DataHelperClient(core.MessageBus); var observer = new StitchEventObserver(core.MessageBus, data, log); var fileSystem = new StitchFileSystem(configuration, new DateTimeVersionManager()); var adaptorFactory = new StitchAdaptorFactory(core, configuration, fileSystem, log, observer); var manager = new StitchInstanceManager(fileSystem, adaptorFactory); var notifier = new StitchEventNotifier(core.MessageBus); _service = new StitchesService(core, data, fileSystem, manager, log, notifier); _subscriptions = new SubscriptionCollection(core.MessageBus); }