示例#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);
        }
示例#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);
        }