コード例 #1
0
 public BaseMapperService(bool autoCreateMapper)
 {
     if (autoCreateMapper)
     {
         BaseMapperService.CreateMapperMember(this);
     }
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 public BaseMapperService()
 {
     BaseMapperService.CreateMapperMember(this);
 }