コード例 #1
0
ファイル: Server.cs プロジェクト: cedriccefc2002/treediagram
 public Server(ILogger <Server> logger)
 {
     this.logger  = logger;
     service      = lib.Provider.serviceProvider.GetRequiredService <Service.IServerService>();
     eventService = lib.Provider.serviceProvider.GetRequiredService <Service.EventService>();
     eventService.evtTreeListUpdate  += new Service.TreeListUpdateDelegate(TreeListUpdateHandler);
     eventService.evtTreeEditLock    += new Service.TreeEditLockDelegate(TreeEditLockHandler);
     eventService.evtTreeEditRelease += new Service.TreeEditReleaseDelegate(TreeEditReleaseHandler);
     eventService.evtTreeEditFinish  += new Service.TreeEditFinishDelegate(TreeEditFinishHandler);
     eventService.evtNodeUpdate      += new Service.NodeUpdateDelegate(NodeUpdateHandler);
 }
コード例 #2
0
 public ServerEvent(ILogger <Server> logger)
 {
     this.logger       = logger;
     this.eventService = lib.Provider.serviceProvider.GetRequiredService <Service.EventService>();
 }