/// <summary>
                /// Initializes a new instance of the <see cref="StateSaver" /> class.
                /// </summary>
                /// <param name="writer">The writer.</param>
                /// <param name="engine">The engine.</param>
                protected StateSaver(IStateWriter writer, CoreReactiveEngine engine)
                {
                    Debug.Assert(writer != null, "Reader should not be null.");
                    Debug.Assert(engine != null, "Engine should not be null.");

                    _writer   = writer;
                    _engine   = engine;
                    _registry = engine.Parent._registry;
                    _snapshot = _registry.TakeSnapshot();
                }
示例#2
0
            public Snapshot(QueryEngineRegistry registry)
            {
                Debug.Assert(registry != null, "Registry should not be null.");

                _subscriptions         = registry._localSubscriptions.Clone();
                _subjects              = registry._localSubjects.Clone();
                _reliableSubscriptions = registry._localReliableSubscriptions.Clone();
                _observables           = registry._localObservables.Clone();
                _observers             = registry._localObservers.Clone();
                _subjectFactories      = registry._localSubjectFactories.Clone();
                _subscriptionFactories = registry._localSubscriptionFactories.Clone();
                _other     = registry._localOther.Clone();
                _templates = registry._localTemplates.Clone();
            }
 public ExecutionEnvironment(QueryEngineRegistry registry, ReadOnlyMetadataServiceContext context)
     : base(registry, context)
 {
     _registry = registry;
 }
 /// <summary>
 /// Instantiate the templatization helper.
 /// </summary>
 /// <param name="registry">The registry containing templates.</param>
 public QueryEngineRegistryTemplatizer(QueryEngineRegistry registry)
 {
     _registry = registry;
 }