public AesEncryptedSQLiteFixture()
        {
            BaseDirectory = GetTempDirectory();

            var aesOptions = new AesMessageEncryptionOptions(KeyGenerator.GenerateAesKey())
            {
                DiagnosticService = DiagnosticService
            };

            MessageEncryptionService = new AesMessageEncryptionService(aesOptions);

            QueueDirectory = CreateSubdirectory(BaseDirectory, "queues");
            var queueingOptions = new SQLiteMessageQueueingOptions
            {
                DiagnosticService        = DiagnosticService,
                BaseDirectory            = QueueDirectory,
                MessageEncryptionService = MessageEncryptionService
            };

            MessageQueueingService = new SQLiteMessageQueueingService(queueingOptions);
            MessageQueueingService.Init();
        }
Beispiel #2
0
        public SQLiteFixture()
        {
            BaseDirectory = GetTempDirectory();

            QueueDirectory = CreateSubdirectory(BaseDirectory, "queues");
            var queueingOptions = new SQLiteMessageQueueingOptions
            {
                DiagnosticService = DiagnosticService,
                BaseDirectory     = QueueDirectory
            };

            MessageQueueingService = new SQLiteMessageQueueingService(queueingOptions);
            MessageQueueingService.Init();

            var subscriptionDirectory = CreateSubdirectory(BaseDirectory, "subscriptions");

            SubscriptionTrackingService = new SQLiteSubscriptionTrackingService(subscriptionDirectory, DiagnosticService);
            SubscriptionTrackingService.Init();

            var journalDirectory = CreateSubdirectory(BaseDirectory, "journal");

            MessageJournal = new SQLiteMessageJournal(journalDirectory, DiagnosticService);
            MessageJournal.Init();
        }