Ejemplo n.º 1
0
        /// <inheritdoc/>
        protected override void PreCreateBus(IInMemoryBusFactoryConfigurator configurator)
        {
            var encrpytionConfiguration = new TestKeyProvider();

            configurator.UseAzureKeyVaultEncryption((kv) =>
            {
                kv.EncryptionKey = encrpytionConfiguration.EncryptionKey;
                kv.KeyResolver   = encrpytionConfiguration.KeyResolver;
            });

            base.PreCreateBus(configurator);
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        protected override void ConfigureServiceBusBusHost(IServiceBusBusFactoryConfigurator configurator, IServiceBusHost host)
        {
            var encrpytionConfiguration = new TestKeyProvider();

            configurator.UseAzureKeyVaultEncryption((kv) =>
            {
                kv.EncryptionKey = encrpytionConfiguration.EncryptionKey;
                kv.KeyResolver   = encrpytionConfiguration.KeyResolver;
            });

            base.ConfigureServiceBusBusHost(configurator, host);
        }