Example #1
0
        public PubSubMapperForSyntaxExtension PublishPersistedEventTo(string section)
        {
            var parameter = new PersistedPubSubConfiguration();

            _configuration.GetSection(section).Bind(parameter);
            SetDefaultValue(parameter);

            return(new PubSubMapperForSyntaxExtension(_services, _configuration, parameter));
        }
Example #2
0
        public PubSubMapperForSyntaxExtension PublishPersistedEventTo(Action <PersistedPubSubConfiguration> options)
        {
            var parameter = new PersistedPubSubConfiguration();

            options.Invoke(parameter);
            SetDefaultValue(parameter);

            return(new PubSubMapperForSyntaxExtension(_services, _configuration, parameter));
        }