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); }
protected abstract void Configure(MapperOptions options);