Exemplo n.º 1
0
        public override void Init()
        {
            thisModelTranslator = ScenePrivate.FindReflective <ISGMTranslator>("Stargate." + _translator_name).FirstOrDefault();
            if (thisModelTranslator == null)
            {
                Log.Write(LogLevel.Error, "Need a gate model specific translator for the mesh names.");
                return;
            }

            AnalyzeGateStructure();
            numberBase = symbols.Count - 1;
            busy       = false;

            thisGateControl = ScenePrivate.FindReflective <IGateControl>("Stargate.SG_Control").FirstOrDefault();
            if (thisGateControl == null)
            {
                Log.Write(LogLevel.Error, "Gate Controller not found in scene.");
                return;
            }

            thisEventHorizon = ScenePrivate.FindReflective <IEventHorizon>("Stargate.SG_EventHorizon").FirstOrDefault();
            if (thisEventHorizon == null)
            {
                Log.Write(LogLevel.Warning, "Gate will not establish an event horizon. Object or script missing.");
            }

            thisGateControl.ConnectGate(this);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QuantumTunnelServiceImplementation"/> class.
 /// </summary>
 /// <param name="eventHorizon"><see cref="IEventHorizon"/> to work with.</param>
 /// <param name="serializer"><see cref="ISerializer"/> to be used for serialization.</param>
 /// <param name="logger"><see cref="ILogger"/> for logging.</param>
 public QuantumTunnelServiceImplementation(
     IEventHorizon eventHorizon,
     ISerializer serializer,
     ILogger logger)
 {
     _eventHorizon = eventHorizon;
     _serializer   = serializer;
     _logger       = logger;
 }
 /// <summary>
 /// Initializes a new instance of <see cref="QuantumTunnelServiceImplementation"/>
 /// </summary>
 /// <param name="eventHorizon"><see cref="IEventHorizon"/> to work with</param>
 /// <param name="serializer"><see cref="ISerializer"/> to be used for serialization</param>
 /// <param name="executionContextManager"><see cref="IExecutionContextManager"/> for dealing with <see cref="ExecutionContext"/></param>
 /// <param name="fetchUnprocessedCommits"><see cref="IFetchUnprocessedCommits"/> for fetching unprocessed commits</param>
 /// <param name="logger"><see cref="ILogger"/> for logging</param>
 public QuantumTunnelServiceImplementation(
     IEventHorizon eventHorizon,
     ISerializer serializer,
     IExecutionContextManager executionContextManager,
     IFetchUnprocessedCommits fetchUnprocessedCommits,
     ILogger logger)
 {
     _eventHorizon = eventHorizon;
     _serializer   = serializer;
     _logger       = logger;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of <see cref="GravitationalLens"/>
 /// </summary>
 /// <param name="eventHorizon"></param>
 /// <param name="serializer"><see cref="ISerializer"/> for serializing payloads</param>
 /// <param name="executionContextManager"><see cref="IExecutionContextManager"/> for dealing with <see cref="ExecutionContext"/></param>
 /// <param name="fetchUnprocessedCommits">An <see cref="IFetchUnprocessedCommits" /> to fetch unprocessed commits</param>
 /// <param name="logger"><see cref="ILogger"/> for logging</param>
 public GravitationalLens(
     IEventHorizon eventHorizon,
     ISerializer serializer,
     IExecutionContextManager executionContextManager,
     IFetchUnprocessedCommits fetchUnprocessedCommits,
     ILogger logger)
 {
     _serializer = serializer;
     _executionContextManager = executionContextManager;
     _logger                  = logger;
     _eventHorizon            = eventHorizon;
     _fetchUnprocessedCommits = fetchUnprocessedCommits;
 }
        /// <summary>
        /// Initializes an instance of a <see cref="UncommittedEventStreamCoordinator"/>
        /// </summary>
        /// <param name="getEventStore">A <see cref="FactoryFor{IEventStore}" /> to return a correctly scoped instance of <see cref="IEventStore" /></param>
        /// <param name="eventProcessorHub"><see cref="IScopedEventProcessingHub"/> for processing in same bounded context</param>
        /// <param name="eventHorizon"><see cref="IEventHorizon"/> to pass events through to</param>
        /// <param name="artifactMap">An instance of <see cref="IArtifactTypeMap" /> to get the artifact for Event Source and Events</param>
        /// <param name="logger"><see cref="ILogger"/> for doing logging</param>
        /// <param name="systemClock"><see cref="ISystemClock"/> for getting the time</param>
        /// <param name="executionContextManager"><see cref="IExecutionContextManager"/> for accessing the current <see cref="ExecutionContext" /></param>

        public UncommittedEventStreamCoordinator(
            FactoryFor <IEventStore> getEventStore,
            IScopedEventProcessingHub eventProcessorHub,
            IEventHorizon eventHorizon,
            IArtifactTypeMap artifactMap,
            ILogger logger,
            ISystemClock systemClock,
            IExecutionContextManager executionContextManager)

        {
            _getEventStore           = getEventStore;
            _eventProcessorHub       = eventProcessorHub;
            _eventHorizon            = eventHorizon;
            _logger                  = logger;
            _artifactMap             = artifactMap;
            _systemClock             = systemClock;
            _executionContextManager = executionContextManager;
        }
 /// <summary>
 /// Initializes a new instance of <see cref="QuantumTunnelServiceImplementation"/>
 /// </summary>
 /// <param name="eventHorizon"></param>
 public QuantumTunnelServiceImplementation(IEventHorizon eventHorizon)
 {
 }