Пример #1
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var cameraModel = model as DigitalVideoDeviceModel;

            Trace.Assert(cameraModel != null);
        }
Пример #2
0
 public CustomUserManager(ILocalizationService localizationService, ICustomUserRepository <TUser> customUserRepository, UserManager <TUser> userManager, ICustomRoleManager <TRole> roleManager, IIdentityModel identityModel, IEmailSender emailSender, ILogger <CustomRoleManager <TUser, TRole> > logger, IMapper mapper, IHttpContextAccessor httpContextAccessor) : base(logger, mapper, httpContextAccessor)
 {
     _userManager          = userManager;
     _roleManager          = roleManager;
     _identityModel        = identityModel;
     _emailSender          = emailSender;
     _localizationService  = localizationService;
     _customUserRepository = customUserRepository;
 }
Пример #3
0
        /// <summary>
        /// 从数据模型加载数据
        /// </summary>
        /// <param name="model">读取数据的源数据模型,该数据模型不能为空引用</param>
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as RabbitMQBusModel;

            Trace.Assert(subModel != null);

            Authorization.Load(subModel.RabbitMQAuthorizationModel);
        }
Пример #4
0
        /// <summary>
        ///         从数据模型加载数据
        /// </summary>
        /// <param name="model">读取数据的源数据模型,该数据模型不能为空引用</param>
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as RabbitMQReceiverModel;

            Trace.Assert(subModel != null);

            _queue.Load(subModel.RabbitMQQueueModel);
        }
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as NewLandCodeScanDeviceModel;

            Trace.Assert(subModel != null);

            SerialBus.Load(subModel.SerialPortBusModel);
        }
Пример #6
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as RabbitMQSenderModel;

            Trace.Assert(subModel != null);

            _exchange.Load(subModel.RabbitMQExchangeModel);
        }
Пример #7
0
        /// <summary>
        ///         从数据模型加载数据
        /// </summary>
        /// <param name="model">读取数据的源数据模型,该数据模型不能为空引用.</param>
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as CapturableDeviceModel;

            Trace.Assert(subModel != null);

            CaptureLooper.Load(subModel.CaptureLooperModel);
        }
Пример #8
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as FyyingIOBoardDeviceModel;

            Trace.Assert(subModel != null);

            BoardId = subModel.BoardId;
        }
Пример #9
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as LimiterModel;

            Trace.Assert(subModel != null);

            Mode = subModel.Mode;
        }
Пример #10
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as GraphicsCardModel;

            Trace.Assert(subModel != null);

            Index = subModel.Index;
        }
Пример #11
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as ResolutionModel;

            Trace.Assert(subModel != null);

            Horizontal = subModel.Horizontal;
            Vertical   = subModel.Vertical;
        }
Пример #12
0
        /// <summary>
        /// 从数据模型加载数据
        /// </summary>
        /// <param name="model">读取数据的源数据模型,该数据模型不能为空引用</param>
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as SerialPortAuthorizationModel;

            Trace.Assert(subModel != null);

            PortName = subModel.PortName;
            BaudRate = subModel.BaudRate;
        }
Пример #13
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as MachineVisionCameraDeviceModel;

            Trace.Assert(subModel != null);

            UserSet = subModel.UserSet;
            StreamChannelPacketSize = subModel.StreamChannelPacketSize;
        }
Пример #14
0
        /// <summary>
        ///         从数据模型加载数据
        /// </summary>
        /// <param name="model">读取数据的源数据模型,该数据模型不能为空引用</param>
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as SerialPortBusModel;

            Trace.Assert(subModel != null);

            Authorization.Load(subModel.SerialPortAuthorizationModel);
            ReadLooper.Load(subModel.ReadLooperModel);
        }
Пример #15
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as DigitalVideoAuthorizationModel;

            Trace.Assert(subModel != null);

            UserName = subModel.UserName;
            Password = subModel.Password;
        }
Пример #16
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as ComponentModel;

            Trace.Assert(subModel != null);

            IsEnable = subModel.IsEnable;
            RunMode  = subModel.RunMode;
        }
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as ManufacturingInformationModel;

            Trace.Assert(subModel != null);

            Manufacturer = subModel.Manufacturer;
            Model        = subModel.Model;
        }
Пример #18
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as DistanceModel;

            Trace.Assert(subModel != null);

            Accuracy = subModel.Accuracy;
            Standard = subModel.Standard;
        }
Пример #19
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as LooperModel;

            Trace.Assert(subModel != null);

            Priority = subModel.Priority;
            Interval = subModel.Interval;
        }
Пример #20
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as DigitalVideoDeviceModel;

            Trace.Assert(subModel != null);



            Authorization.Load(subModel.DigitalVideoAuthorizationModel);
        }
Пример #21
0
        /// <summary>
        ///         从数据模型加载数据
        /// </summary>
        /// <param name="model">读取数据的源数据模型,该数据模型不能为空引用</param>
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as RabbitMQExchangeModel;

            Trace.Assert(subModel != null);

            Name         = subModel.Name;
            ExchangeType = subModel.ExchangeType;
            IsDurable    = subModel.IsDurable;
            IsAutoDelete = subModel.IsAutoDelete;
        }
Пример #22
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as RegionModel;

            Trace.Assert(subModel != null);

            X      = subModel.X;
            Y      = subModel.Y;
            Width  = subModel.Width;
            Height = subModel.Height;
        }
Пример #23
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as ScaleModel;

            Trace.Assert(subModel != null);

            Value = subModel.Value;

            //scaleModel.SegmentModel.NotNull();
            //Segment.Load(scaleModel.SegmentModel);
        }
Пример #24
0
        /// <summary>
        ///         从数据模型加载数据
        /// </summary>
        /// <param name="model">数据模型</param>
        public override void Load([MustNotEqualNull] IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as OpcItemModel;

            Trace.Assert(subModel != null);


            Address       = subModel.Address;
            TypeCode      = subModel.TypeCode;
            ReadWriteMode = subModel.ReadWriteMode;
        }
Пример #25
0
        /// <summary>
        ///         从数据模型加载数据
        /// </summary>
        /// <param name="model">读取数据的源数据模型,该数据模型不能为空引用</param>
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as RabbitMQAuthorizationModel;

            Trace.Assert(subModel != null);

            HostName   = subModel.HostName;
            PortNumber = subModel.PortNumber;
            UserName   = subModel.UserName;
            Password   = subModel.Password;
        }
Пример #26
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subMode = model as AppInstanceModel;

            Trace.Assert(subMode != null);

            Name      = subMode.Name;
            Title     = subMode.Title;
            Company   = subMode.Company;
            CopyRight = subMode.CopyRight;
        }
Пример #27
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as SegmentModel;

            Trace.Assert(subModel != null);

            X1 = subModel.X1;
            Y1 = subModel.Y1;
            X2 = subModel.X2;
            Y2 = subModel.Y2;
        }
Пример #28
0
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as RabbitMQQueueModel;

            Trace.Assert(subModel != null);

            Name         = subModel.Name;
            IsDurable    = subModel.IsDurable;
            IsExclusive  = subModel.IsExclusive;
            IsAutoDelete = subModel.IsAutoDelete;
        }
Пример #29
0
        /// <summary>
        /// 保存数据到数据模型
        /// </summary>
        /// <param name="model">写入数据的目的数据模型,该数据模型不能为空引用</param>
        public override void Save(IIdentityModel model)
        {
            base.Save(model);

            var subModel = model as MediaCaptureDeviceModel;

            Trace.Assert(subModel != null);


            subModel.Width       = Width;
            subModel.Height      = Height;
            subModel.PixelFormat = PixelFormat;

            Region.Save(subModel.RegionModel);
        }
        /// <summary>
        ///         从数据模型加载数据
        /// </summary>
        /// <param name="model">读取数据的源数据模型,该数据模型不能为空引用.</param>
        public override void Load(IIdentityModel model)
        {
            base.Load(model);

            var subModel = model as NetworkMediaCaptureDeviceModel;

            Trace.Assert(subModel != null);


            IPAddress = IPAddress.Parse(subModel.IPAddress);

            Trace.Assert(!Equals(IPAddress, IPAddress.Any));
            Trace.Assert(!Equals(IPAddress, IPAddress.None));
            Trace.Assert(!Equals(IPAddress, IPAddress.Loopback));
        }