public BaseMapperService(bool autoCreateMapper) { if (autoCreateMapper) { BaseMapperService.CreateMapperMember(this); } }
internal ModelLoader(Type type, ModelLoaderAttribute attr) { this.type = type; object obj = Activator.CreateInstance(type); this.loader = obj as IModelLoader; if (this.loader == null) { throw new NotImplementedException(string.Concat(type.FullName, " not Implemented IModelLoader interface")); } BaseMapperService baseMapperService = obj as BaseMapperService; if (baseMapperService != null) { baseMapperService.SetModelLoader(this); } this.interval = attr.Interval; this.timer = new Timer(new TimerCallback(this.TimerCallback), null, -1, -1); this.maxTryCount = attr.TryCount; }
public BaseMapperService() { BaseMapperService.CreateMapperMember(this); }