Пример #1
0
        private IMapper GetOrCreate()
        {
            if (this.mapper == null)
            {
                lock (this.syncRoot)
                {
                    if (this.mapper == null)
                    {
                        var options = new MapperOptions();
                        this.Configure(options);

                        this.mapper = options.CreateMapper();
                    }
                }
            }

            return(this.mapper);
        }
Пример #2
0
 protected abstract void Configure(MapperOptions options);