Example #1
0
        protected ChangeNotifierBase(IConfiguration config)
        {
            var protocol     = Settings.AMQP_PROTOCOL(config);
            var policyName   = Settings.AMQP_POLICY_NAME(config);
            var policyKey    = Settings.AMQP_POLICY_KEY(config);
            var namespaceUrl = Settings.AMQP_NAMESPACE_URL(config);
            var connStr      = $"{protocol}://{policyName}:{policyKey}@{namespaceUrl}/";

            _address     = new Address(connStr);
            _ttlMins     = Settings.AMQP_TTL_MINS(config);
            _topicPrefix = Settings.AMQP_TOPIC_PREFIX(config);
        }