public StateManager(
            [NotNull] StateEntryFactory factory,
            [NotNull] EntityKeyFactorySource entityKeyFactorySource,
            [NotNull] StateEntrySubscriber subscriber,
            [NotNull] StateEntryNotifier notifier,
            [NotNull] ValueGenerationManager valueGeneration,
            [NotNull] DbContextService <IModel> model,
            [NotNull] DbContextService <DataStore> dataStore)
        {
            Check.NotNull(factory, "factory");
            Check.NotNull(entityKeyFactorySource, "entityKeyFactorySource");
            Check.NotNull(subscriber, "subscriber");
            Check.NotNull(notifier, "notifier");
            Check.NotNull(model, "model");
            Check.NotNull(dataStore, "dataStore");
            Check.NotNull(valueGeneration, "valueGeneration");

            _keyFactorySource = entityKeyFactorySource;
            _factory          = factory;
            _subscriber       = subscriber;
            _notifier         = notifier;
            _valueGeneration  = valueGeneration;
            _model            = model;
            _dataStore        = dataStore;
        }
Beispiel #2
0
        public ChangeDetector([NotNull] DbContextConfiguration configuration, [NotNull] StateEntryNotifier notifier)
        {
            Check.NotNull(configuration, "configuration");
            Check.NotNull(notifier, "notifier");

            _configuration = configuration;
            _notifier      = notifier;
        }
        public ChangeDetector([NotNull] DbContextConfiguration configuration, [NotNull] StateEntryNotifier notifier)
        {
            Check.NotNull(configuration, "configuration");
            Check.NotNull(notifier, "notifier");

            _configuration = configuration;
            _notifier = notifier;
        }
Beispiel #4
0
        public StateEntrySubscriber([NotNull] StateEntryNotifier notifier)
        {
            Check.NotNull(notifier, "notifier");

            _notifier = notifier;
        }