Exemplo n.º 1
0
        public AtataContextBuilder <TContext> WithProperties(Dictionary <string, object> propertiesMap)
        {
            propertiesMap.CheckNotNull(nameof(propertiesMap));

            AtataMapper.Map(propertiesMap, Context);

            return(this);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Specifies the properties map for the driver service.
        /// </summary>
        /// <param name="servicePropertiesMap">The properties map.</param>
        /// <returns>The same builder instance.</returns>
        public TBuilder WithDriverService(Dictionary <string, object> servicePropertiesMap)
        {
            servicePropertiesMap.CheckNotNull(nameof(servicePropertiesMap));

            return(WithDriverService(srv => AtataMapper.Map(servicePropertiesMap, srv)));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Specifies the properties map for the driver options.
        /// </summary>
        /// <param name="optionsPropertiesMap">The properties map.</param>
        /// <returns>The same builder instance.</returns>
        public TBuilder WithOptions(Dictionary <string, object> optionsPropertiesMap)
        {
            optionsPropertiesMap.CheckNotNull(nameof(optionsPropertiesMap));

            return(WithOptions(opt => AtataMapper.Map(optionsPropertiesMap, opt)));
        }