public override void Load(IIdentityModel model) { base.Load(model); var cameraModel = model as DigitalVideoDeviceModel; Trace.Assert(cameraModel != null); }
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; }
/// <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); }
/// <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); }
public override void Load(IIdentityModel model) { base.Load(model); var subModel = model as RabbitMQSenderModel; Trace.Assert(subModel != null); _exchange.Load(subModel.RabbitMQExchangeModel); }
/// <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); }
public override void Load(IIdentityModel model) { base.Load(model); var subModel = model as FyyingIOBoardDeviceModel; Trace.Assert(subModel != null); BoardId = subModel.BoardId; }
public override void Load(IIdentityModel model) { base.Load(model); var subModel = model as LimiterModel; Trace.Assert(subModel != null); Mode = subModel.Mode; }
public override void Load(IIdentityModel model) { base.Load(model); var subModel = model as GraphicsCardModel; Trace.Assert(subModel != null); Index = subModel.Index; }
public override void Load(IIdentityModel model) { base.Load(model); var subModel = model as ResolutionModel; Trace.Assert(subModel != null); Horizontal = subModel.Horizontal; Vertical = subModel.Vertical; }
/// <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; }
public override void Load(IIdentityModel model) { base.Load(model); var subModel = model as MachineVisionCameraDeviceModel; Trace.Assert(subModel != null); UserSet = subModel.UserSet; StreamChannelPacketSize = subModel.StreamChannelPacketSize; }
/// <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); }
public override void Load(IIdentityModel model) { base.Load(model); var subModel = model as DigitalVideoAuthorizationModel; Trace.Assert(subModel != null); UserName = subModel.UserName; Password = subModel.Password; }
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; }
public override void Load(IIdentityModel model) { base.Load(model); var subModel = model as DistanceModel; Trace.Assert(subModel != null); Accuracy = subModel.Accuracy; Standard = subModel.Standard; }
public override void Load(IIdentityModel model) { base.Load(model); var subModel = model as LooperModel; Trace.Assert(subModel != null); Priority = subModel.Priority; Interval = subModel.Interval; }
public override void Load(IIdentityModel model) { base.Load(model); var subModel = model as DigitalVideoDeviceModel; Trace.Assert(subModel != null); Authorization.Load(subModel.DigitalVideoAuthorizationModel); }
/// <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; }
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; }
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); }
/// <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; }
/// <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; }
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; }
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; }
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; }
/// <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)); }