예제 #1
0
        public FilesystemFixture()
        {
            BaseDirectory = GetTempDirectory();

            var fsQueueingOptions = new FilesystemMessageQueueingOptions
            {
                DiagnosticService = DiagnosticService,
                BaseDirectory     = BaseDirectory
            };

            MessageQueueingService = new FilesystemMessageQueueingService(fsQueueingOptions);
            MessageQueueingService.Init();

            SubscriptionTrackingService = new FilesystemSubscriptionTrackingService(BaseDirectory);
            SubscriptionTrackingService.Init();
        }
        public AesEncryptedFilesystemFixture()
        {
            BaseDirectory = GetTempDirectory();

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

            MessageEncryptionService = new AesMessageEncryptionService(aesOptions);

            var fsQueueingOptions = new FilesystemMessageQueueingOptions
            {
                DiagnosticService        = DiagnosticService,
                BaseDirectory            = BaseDirectory,
                MessageEncryptionService = MessageEncryptionService
            };

            MessageQueueingService = new FilesystemMessageQueueingService(fsQueueingOptions);
            MessageQueueingService.Init();
        }