/// <summary>
 /// Initializes a new instance of the <see cref="MigratorForwarder"/> class.
 /// </summary>
 /// <param name="testActor">The test actor reference</param>
 /// <param name="contextFactory">The context factory</param>
 /// <param name="nugetRepository">The nuget repository</param>
 public MigratorForwarder(
     IActorRef testActor,
     UniversalContextFactory contextFactory,
     IPackageRepository nugetRepository)
     : base(contextFactory, nugetRepository)
 {
     this.Parent = testActor;
 }
        /// <inheritdoc />
        public TestDataActor(UniversalContextFactory contextFactory, IComponentContext componentContext) : base(componentContext)
        {
            this.contextFactory = contextFactory;

            this.ReceiveAsync <CrudActionMessage <User, Guid> >(this.OnRequest);
            this.ReceiveAsync <CrudActionMessage <Role, Guid> >(this.OnRequest);
            this.ReceiveAsync <CollectionRequest <User> >(this.OnCollectionRequest <User, Guid>);
            this.ReceiveAsync <CollectionRequest <Role> >(this.OnCollectionRequest <Role, Guid>);
        }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ConfigurationCheckActor"/> class.
        /// </summary>
        /// <param name="componentContext">
        /// The DI context
        /// </param>
        /// <param name="contextFactory">
        /// Configuration context factory
        /// </param>
        /// <param name="nugetRepository">
        /// The nuget repository
        /// </param>
        public ConfigurationCheckActor(
            IComponentContext componentContext,
            UniversalContextFactory contextFactory,
            IPackageRepository nugetRepository) : base(componentContext)
        {
            this.contextFactory       = contextFactory;
            this.nugetRepository      = nugetRepository;
            this.connectionString     = Context.System.Settings.Config.GetString(NodeManagerActor.ConfigConnectionStringPath);
            this.databaseName         = Context.System.Settings.Config.GetString(NodeManagerActor.ConfigDatabaseNamePath);
            this.databaseProviderName = Context.System.Settings.Config.GetString(NodeManagerActor.ConfigDatabaseProviderNamePath);

            this.ReceiveAsync <CrudActionMessage <Configuration, int> >(this.OnRequest);
            this.ReceiveAsync <ConfigurationCheckRequest>(this.OnConfigurationCheck);
            this.ReceiveAsync <ConfigurationSetReadyRequest>(this.OnConfigurationSetReady);
            this.Receive <ConfigurationSetObsoleteRequest>(r => this.OnConfigurationSetObsolete(r));
            this.Receive <ConfigurationSetStableRequest>(r => this.OnConfigurationSetStable(r));
        }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseDatabaseMigrator{TContext}"/> class.
 /// </summary>
 /// <param name="contextFactory">
 /// The context factory manager.
 /// </param>
 protected BaseDatabaseMigrator(UniversalContextFactory contextFactory)
 {
     this.contextFactory = contextFactory;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConfigurationMigrator"/> class.
 /// </summary>
 /// <param name="config">
 /// The migrator config.
 /// </param>
 /// <param name="contextFactory">
 /// The context factory
 /// </param>
 public ConfigurationMigrator(Config config, UniversalContextFactory contextFactory) : base(contextFactory)
 {
     this.config = config;
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Seeder"/> class.
 /// </summary>
 /// <param name="config">
 /// The config.
 /// </param>
 /// <param name="contextFactory">
 /// The context factory.
 /// </param>
 /// <param name="packageRepository">
 /// The package repository.
 /// </param>
 public Seeder(Config config, UniversalContextFactory contextFactory, IPackageRepository packageRepository)
 {
     this.Config            = config;
     this.contextFactory    = contextFactory;
     this.packageRepository = packageRepository;
 }