Esempio n. 1
0
 private void Handle(AppSystemCreated evnt)
 {
     _id      = evnt.AggregateRootId;
     _info    = evnt.Info;
     _safeKey = evnt.SafeKey;
     _status  = AppSystemStatus.Normal.ToString();
     _useFlag = (int)UseFlag.Useable;
 }
Esempio n. 2
0
        private void Handle(AppSystemUpdated evnt)
        {
            var editableInfo = evnt.Info;

            _info = new AppSystemInfo(_info.Code, editableInfo.Name, _info.AccountId, editableInfo.ReMark)
            {
                CreateTime = _info.CreateTime
            };
        }
Esempio n. 3
0
 public AppSystemCreated(AppSystemInfo info, string safeKey)
 {
     Info    = info;
     SafeKey = safeKey;
 }
Esempio n. 4
0
 /// <summary>创建应用系统
 /// </summary>
 public AppSystem(string id, AppSystemInfo info, string safeKey) : base(id)
 {
     Assert.IsNotNullOrEmpty("应用系统名称", info.Name);
     Assert.IsNotNullOrEmpty("应用系统代码", info.Code);
     ApplyEvent(new AppSystemCreated(info, safeKey));
 }