Example #1
0
File: WebApp.cs Project: vebin/NCas
 //创建
 private void Handle(WebAppCreated evnt)
 {
     _id      = evnt.AggregateRootId;
     _info    = evnt.Info;
     _useFlag = (int)UseFlag.Useable;
 }
Example #2
0
File: WebApp.cs Project: vebin/NCas
 /// <summary>创建网站节点
 /// </summary>
 public WebApp(string id, WebAppInfo info) : base(id)
 {
     ApplyEvent(new WebAppCreated(info));
 }