ntminer 5 years ago
parent
commit
4883b92b3d

+ 73 - 73
src/NTMinerClient/Core/Messages.cs

@@ -169,19 +169,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加工作后")]
     public class MineWorkAddedEvent : DomainEvent<IMineWork> {
-        public MineWorkAddedEvent(PathId routeToPathId, IMineWork source) : base(routeToPathId, source) {
+        public MineWorkAddedEvent(PathId targetPathId, IMineWork source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新工作后")]
     public class MineWorkUpdatedEvent : DomainEvent<IMineWork> {
-        public MineWorkUpdatedEvent(PathId routeToPathId, IMineWork source) : base(routeToPathId, source) {
+        public MineWorkUpdatedEvent(PathId targetPathId, IMineWork source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "删除工作后")]
     public class MineWorkRemovedEvent : DomainEvent<IMineWork> {
-        public MineWorkRemovedEvent(PathId routeToPathId, IMineWork source) : base(routeToPathId, source) {
+        public MineWorkRemovedEvent(PathId targetPathId, IMineWork source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -207,19 +207,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加矿机分组后")]
     public class MinerGroupAddedEvent : DomainEvent<IMinerGroup> {
-        public MinerGroupAddedEvent(PathId routeToPathId, IMinerGroup source) : base(routeToPathId, source) {
+        public MinerGroupAddedEvent(PathId targetPathId, IMinerGroup source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新矿机分组后")]
     public class MinerGroupUpdatedEvent : DomainEvent<IMinerGroup> {
-        public MinerGroupUpdatedEvent(PathId routeToPathId, IMinerGroup source) : base(routeToPathId, source) {
+        public MinerGroupUpdatedEvent(PathId targetPathId, IMinerGroup source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "删除矿机分组后")]
     public class MinerGroupRemovedEvent : DomainEvent<IMinerGroup> {
-        public MinerGroupRemovedEvent(PathId routeToPathId, IMinerGroup source) : base(routeToPathId, source) {
+        public MinerGroupRemovedEvent(PathId targetPathId, IMinerGroup source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -245,19 +245,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加NTMiner钱包后")]
     public class NTMinerWalletAddedEvent : DomainEvent<INTMinerWallet> {
-        public NTMinerWalletAddedEvent(PathId routeToPathId, INTMinerWallet source) : base(routeToPathId, source) {
+        public NTMinerWalletAddedEvent(PathId targetPathId, INTMinerWallet source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新NTMiner钱包后")]
     public class NTMinerWalletUpdatedEvent : DomainEvent<INTMinerWallet> {
-        public NTMinerWalletUpdatedEvent(PathId routeToPathId, INTMinerWallet source) : base(routeToPathId, source) {
+        public NTMinerWalletUpdatedEvent(PathId targetPathId, INTMinerWallet source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "删除NTMiner钱包后")]
     public class NTMinerWalletRemovedEvent : DomainEvent<INTMinerWallet> {
-        public NTMinerWalletRemovedEvent(PathId routeToPathId, INTMinerWallet source) : base(routeToPathId, source) {
+        public NTMinerWalletRemovedEvent(PathId targetPathId, INTMinerWallet source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -283,19 +283,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加超频建议后")]
     public class OverClockDataAddedEvent : DomainEvent<IOverClockData> {
-        public OverClockDataAddedEvent(PathId routeToPathId, IOverClockData source) : base(routeToPathId, source) {
+        public OverClockDataAddedEvent(PathId targetPathId, IOverClockData source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新超频建议后")]
     public class OverClockDataUpdatedEvent : DomainEvent<IOverClockData> {
-        public OverClockDataUpdatedEvent(PathId routeToPathId, IOverClockData source) : base(routeToPathId, source) {
+        public OverClockDataUpdatedEvent(PathId targetPathId, IOverClockData source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "删除超频建议后")]
     public class OverClockDataRemovedEvent : DomainEvent<IOverClockData> {
-        public OverClockDataRemovedEvent(PathId routeToPathId, IOverClockData source) : base(routeToPathId, source) {
+        public OverClockDataRemovedEvent(PathId targetPathId, IOverClockData source) : base(targetPathId, source) {
         }
     }
 
@@ -333,19 +333,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加列显后")]
     public class ColumnsShowAddedEvent : DomainEvent<IColumnsShow> {
-        public ColumnsShowAddedEvent(PathId routeToPathId, IColumnsShow source) : base(routeToPathId, source) {
+        public ColumnsShowAddedEvent(PathId targetPathId, IColumnsShow source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新列显后")]
     public class ColumnsShowUpdatedEvent : DomainEvent<IColumnsShow> {
-        public ColumnsShowUpdatedEvent(PathId routeToPathId, IColumnsShow source) : base(routeToPathId, source) {
+        public ColumnsShowUpdatedEvent(PathId targetPathId, IColumnsShow source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "删除列显后")]
     public class ColumnsShowRemovedEvent : DomainEvent<IColumnsShow> {
-        public ColumnsShowRemovedEvent(PathId routeToPathId, IColumnsShow source) : base(routeToPathId, source) {
+        public ColumnsShowRemovedEvent(PathId targetPathId, IColumnsShow source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -371,13 +371,13 @@ namespace NTMiner.Core {
     
     [MessageType(description: "币种超频完成后")]
     public class CoinOverClockDoneEvent : EventBase {
-        public CoinOverClockDoneEvent(PathId routeToPathId) : base(routeToPathId) {
+        public CoinOverClockDoneEvent(PathId targetPathId) : base(targetPathId) {
         }
     }
 
     [MessageType(description: "Gpu超频数据添加或更新后")]
     public class GpuProfileAddedOrUpdatedEvent : DomainEvent<IGpuProfile> {
-        public GpuProfileAddedOrUpdatedEvent(PathId routeToPathId, IGpuProfile source) : base(routeToPathId, source) {
+        public GpuProfileAddedOrUpdatedEvent(PathId targetPathId, IGpuProfile source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -385,7 +385,7 @@ namespace NTMiner.Core {
     #region speed and share
     [MessageType(description: "显卡算力变更事件")]
     public class GpuSpeedChangedEvent : DomainEvent<IGpuSpeed> {
-        public GpuSpeedChangedEvent(bool isDual, PathId routeToPathId, IGpuSpeed gpuSpeed) : base(routeToPathId, gpuSpeed) {
+        public GpuSpeedChangedEvent(bool isDual, PathId targetPathId, IGpuSpeed gpuSpeed) : base(targetPathId, gpuSpeed) {
             this.IsDual = isDual;
         }
 
@@ -394,37 +394,37 @@ namespace NTMiner.Core {
 
     [MessageType(description: "显卡份额变更事件")]
     public class GpuShareChangedEvent : DomainEvent<IGpuSpeed> {
-        public GpuShareChangedEvent(PathId routeToPathId, IGpuSpeed gpuSpeed) : base(routeToPathId, gpuSpeed) {
+        public GpuShareChangedEvent(PathId targetPathId, IGpuSpeed gpuSpeed) : base(targetPathId, gpuSpeed) {
         }
     }
 
     [MessageType(description: "找到了一个份额")]
     public class FoundShareIncreasedEvent : DomainEvent<IGpuSpeed> {
-        public FoundShareIncreasedEvent(PathId routeToPathId, IGpuSpeed gpuSpeed) : base(routeToPathId, gpuSpeed) {
+        public FoundShareIncreasedEvent(PathId targetPathId, IGpuSpeed gpuSpeed) : base(targetPathId, gpuSpeed) {
         }
     }
 
     [MessageType(description: "接受了一个份额")]
     public class AcceptShareIncreasedEvent : DomainEvent<IGpuSpeed> {
-        public AcceptShareIncreasedEvent(PathId routeToPathId, IGpuSpeed gpuSpeed) : base(routeToPathId, gpuSpeed) {
+        public AcceptShareIncreasedEvent(PathId targetPathId, IGpuSpeed gpuSpeed) : base(targetPathId, gpuSpeed) {
         }
     }
 
     [MessageType(description: "拒绝了一个份额")]
     public class RejectShareIncreasedEvent : DomainEvent<IGpuSpeed> {
-        public RejectShareIncreasedEvent(PathId routeToPathId, IGpuSpeed gpuSpeed) : base(routeToPathId, gpuSpeed) {
+        public RejectShareIncreasedEvent(PathId targetPathId, IGpuSpeed gpuSpeed) : base(targetPathId, gpuSpeed) {
         }
     }
 
     [MessageType(description: "算错了一个份额")]
     public class IncorrectShareIncreasedEvent : DomainEvent<IGpuSpeed> {
-        public IncorrectShareIncreasedEvent(PathId routeToPathId, IGpuSpeed gpuSpeed) : base(routeToPathId, gpuSpeed) {
+        public IncorrectShareIncreasedEvent(PathId targetPathId, IGpuSpeed gpuSpeed) : base(targetPathId, gpuSpeed) {
         }
     }
 
     [MessageType(description: "收益变更事件")]
     public class ShareChangedEvent : DomainEvent<ICoinShare> {
-        public ShareChangedEvent(PathId routeToPathId, ICoinShare share) : base(routeToPathId, share) {
+        public ShareChangedEvent(PathId targetPathId, ICoinShare share) : base(targetPathId, share) {
         }
     }
     #endregion
@@ -432,7 +432,7 @@ namespace NTMiner.Core {
     #region Gpu Messages
     [MessageType(description: "显卡状态变更事件", isCanNoHandler: true)]
     public class GpuStateChangedEvent : DomainEvent<IGpu> {
-        public GpuStateChangedEvent(PathId routeToPathId, IGpu source) : base(routeToPathId, source) {
+        public GpuStateChangedEvent(PathId targetPathId, IGpu source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -458,19 +458,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加系统字典后")]
     public class SysDicAddedEvent : DomainEvent<ISysDic> {
-        public SysDicAddedEvent(PathId routeToPathId, ISysDic source) : base(routeToPathId, source) {
+        public SysDicAddedEvent(PathId targetPathId, ISysDic source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新系统字典后")]
     public class SysDicUpdatedEvent : DomainEvent<ISysDic> {
-        public SysDicUpdatedEvent(PathId routeToPathId, ISysDic source) : base(routeToPathId, source) {
+        public SysDicUpdatedEvent(PathId targetPathId, ISysDic source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "删除系统字典后")]
     public class SysDicRemovedEvent : DomainEvent<ISysDic> {
-        public SysDicRemovedEvent(PathId routeToPathId, ISysDic source) : base(routeToPathId, source) {
+        public SysDicRemovedEvent(PathId targetPathId, ISysDic source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -496,19 +496,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了系统字典项后")]
     public class SysDicItemAddedEvent : DomainEvent<ISysDicItem> {
-        public SysDicItemAddedEvent(PathId routeToPathId, ISysDicItem source) : base(routeToPathId, source) {
+        public SysDicItemAddedEvent(PathId targetPathId, ISysDicItem source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了系统字典项后")]
     public class SysDicItemUpdatedEvent : DomainEvent<ISysDicItem> {
-        public SysDicItemUpdatedEvent(PathId routeToPathId, ISysDicItem source) : base(routeToPathId, source) {
+        public SysDicItemUpdatedEvent(PathId targetPathId, ISysDicItem source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "删除了系统字典项后")]
     public class SysDicItemRemovedEvent : DomainEvent<ISysDicItem> {
-        public SysDicItemRemovedEvent(PathId routeToPathId, ISysDicItem source) : base(routeToPathId, source) {
+        public SysDicItemRemovedEvent(PathId targetPathId, ISysDicItem source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -534,25 +534,25 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了币种后")]
     public class CoinAddedEvent : DomainEvent<ICoin> {
-        public CoinAddedEvent(PathId routeToPathId, ICoin source) : base(routeToPathId, source) {
+        public CoinAddedEvent(PathId targetPathId, ICoin source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了币种后")]
     public class CoinUpdatedEvent : DomainEvent<ICoin> {
-        public CoinUpdatedEvent(PathId routeToPathId, ICoin source) : base(routeToPathId, source) {
+        public CoinUpdatedEvent(PathId targetPathId, ICoin source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了币种后")]
     public class CoinRemovedEvent : DomainEvent<ICoin> {
-        public CoinRemovedEvent(PathId routeToPathId, ICoin source) : base(routeToPathId, source) {
+        public CoinRemovedEvent(PathId targetPathId, ICoin source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "下载了币种图标后")]
     public class CoinIconDownloadedEvent : DomainEvent<ICoin> {
-        public CoinIconDownloadedEvent(PathId routeToPathId, ICoin source) : base(routeToPathId, source) {
+        public CoinIconDownloadedEvent(PathId targetPathId, ICoin source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -578,19 +578,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了组后")]
     public class GroupAddedEvent : DomainEvent<IGroup> {
-        public GroupAddedEvent(PathId routeToPathId, IGroup source) : base(routeToPathId, source) {
+        public GroupAddedEvent(PathId targetPathId, IGroup source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了组后")]
     public class GroupUpdatedEvent : DomainEvent<IGroup> {
-        public GroupUpdatedEvent(PathId routeToPathId, IGroup source) : base(routeToPathId, source) {
+        public GroupUpdatedEvent(PathId targetPathId, IGroup source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了组后")]
     public class GroupRemovedEvent : DomainEvent<IGroup> {
-        public GroupRemovedEvent(PathId routeToPathId, IGroup source) : base(routeToPathId, source) {
+        public GroupRemovedEvent(PathId targetPathId, IGroup source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -616,13 +616,13 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了币组后")]
     public class CoinGroupAddedEvent : DomainEvent<ICoinGroup> {
-        public CoinGroupAddedEvent(PathId routeToPathId, ICoinGroup source) : base(routeToPathId, source) {
+        public CoinGroupAddedEvent(PathId targetPathId, ICoinGroup source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了币组后")]
     public class CoinGroupRemovedEvent : DomainEvent<ICoinGroup> {
-        public CoinGroupRemovedEvent(PathId routeToPathId, ICoinGroup source) : base(routeToPathId, source) {
+        public CoinGroupRemovedEvent(PathId targetPathId, ICoinGroup source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -648,19 +648,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了文件书写器后")]
     public class FileWriterAddedEvent : DomainEvent<IFileWriter> {
-        public FileWriterAddedEvent(PathId routeToPathId, IFileWriter source) : base(routeToPathId, source) {
+        public FileWriterAddedEvent(PathId targetPathId, IFileWriter source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了文件书写器后")]
     public class FileWriterUpdatedEvent : DomainEvent<IFileWriter> {
-        public FileWriterUpdatedEvent(PathId routeToPathId, IFileWriter source) : base(routeToPathId, source) {
+        public FileWriterUpdatedEvent(PathId targetPathId, IFileWriter source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了文件书写器后")]
     public class FileWriterRemovedEvent : DomainEvent<IFileWriter> {
-        public FileWriterRemovedEvent(PathId routeToPathId, IFileWriter source) : base(routeToPathId, source) {
+        public FileWriterRemovedEvent(PathId targetPathId, IFileWriter source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -686,19 +686,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了命令行片段书写器后")]
     public class FragmentWriterAddedEvent : DomainEvent<IFragmentWriter> {
-        public FragmentWriterAddedEvent(PathId routeToPathId, IFragmentWriter source) : base(routeToPathId, source) {
+        public FragmentWriterAddedEvent(PathId targetPathId, IFragmentWriter source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了命令行片段书写器后")]
     public class FragmentWriterUpdatedEvent : DomainEvent<IFragmentWriter> {
-        public FragmentWriterUpdatedEvent(PathId routeToPathId, IFragmentWriter source) : base(routeToPathId, source) {
+        public FragmentWriterUpdatedEvent(PathId targetPathId, IFragmentWriter source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了命令行片段书写器后")]
     public class FragmentWriterRemovedEvent : DomainEvent<IFragmentWriter> {
-        public FragmentWriterRemovedEvent(PathId routeToPathId, IFragmentWriter source) : base(routeToPathId, source) {
+        public FragmentWriterRemovedEvent(PathId targetPathId, IFragmentWriter source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -724,19 +724,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了钱包后")]
     public class WalletAddedEvent : DomainEvent<IWallet> {
-        public WalletAddedEvent(PathId routeToPathId, IWallet source) : base(routeToPathId, source) {
+        public WalletAddedEvent(PathId targetPathId, IWallet source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了钱包后")]
     public class WalletUpdatedEvent : DomainEvent<IWallet> {
-        public WalletUpdatedEvent(PathId routeToPathId, IWallet source) : base(routeToPathId, source) {
+        public WalletUpdatedEvent(PathId targetPathId, IWallet source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了钱包后")]
     public class WalletRemovedEvent : DomainEvent<IWallet> {
-        public WalletRemovedEvent(PathId routeToPathId, IWallet source) : base(routeToPathId, source) {
+        public WalletRemovedEvent(PathId targetPathId, IWallet source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -762,19 +762,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了矿池后")]
     public class PoolAddedEvent : DomainEvent<IPool> {
-        public PoolAddedEvent(PathId routeToPathId, IPool source) : base(routeToPathId, source) {
+        public PoolAddedEvent(PathId targetPathId, IPool source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了矿池后")]
     public class PoolUpdatedEvent : DomainEvent<IPool> {
-        public PoolUpdatedEvent(PathId routeToPathId, IPool source) : base(routeToPathId, source) {
+        public PoolUpdatedEvent(PathId targetPathId, IPool source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了矿池后")]
     public class PoolRemovedEvent : DomainEvent<IPool> {
-        public PoolRemovedEvent(PathId routeToPathId, IPool source) : base(routeToPathId, source) {
+        public PoolRemovedEvent(PathId targetPathId, IPool source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -800,19 +800,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了币种级内核后")]
     public class CoinKernelAddedEvent : DomainEvent<ICoinKernel> {
-        public CoinKernelAddedEvent(PathId routeToPathId, ICoinKernel source) : base(routeToPathId, source) {
+        public CoinKernelAddedEvent(PathId targetPathId, ICoinKernel source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了币种级内核后")]
     public class CoinKernelUpdatedEvent : DomainEvent<ICoinKernel> {
-        public CoinKernelUpdatedEvent(PathId routeToPathId, ICoinKernel source) : base(routeToPathId, source) {
+        public CoinKernelUpdatedEvent(PathId targetPathId, ICoinKernel source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了币种级内核后")]
     public class CoinKernelRemovedEvent : DomainEvent<ICoinKernel> {
-        public CoinKernelRemovedEvent(PathId routeToPathId, ICoinKernel source) : base(routeToPathId, source) {
+        public CoinKernelRemovedEvent(PathId targetPathId, ICoinKernel source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -838,19 +838,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了矿池级内核后")]
     public class PoolKernelAddedEvent : DomainEvent<IPoolKernel> {
-        public PoolKernelAddedEvent(PathId routeToPathId, IPoolKernel source) : base(routeToPathId, source) {
+        public PoolKernelAddedEvent(PathId targetPathId, IPoolKernel source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了矿池级内核后")]
     public class PoolKernelUpdatedEvent : DomainEvent<IPoolKernel> {
-        public PoolKernelUpdatedEvent(PathId routeToPathId, IPoolKernel source) : base(routeToPathId, source) {
+        public PoolKernelUpdatedEvent(PathId targetPathId, IPoolKernel source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了矿池级内核后")]
     public class PoolKernelRemovedEvent : DomainEvent<IPoolKernel> {
-        public PoolKernelRemovedEvent(PathId routeToPathId, IPoolKernel source) : base(routeToPathId, source) {
+        public PoolKernelRemovedEvent(PathId targetPathId, IPoolKernel source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -876,19 +876,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了包后")]
     public class PackageAddedEvent : DomainEvent<IPackage> {
-        public PackageAddedEvent(PathId routeToPathId, IPackage source) : base(routeToPathId, source) {
+        public PackageAddedEvent(PathId targetPathId, IPackage source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了包后")]
     public class PackageUpdatedEvent : DomainEvent<IPackage> {
-        public PackageUpdatedEvent(PathId routeToPathId, IPackage source) : base(routeToPathId, source) {
+        public PackageUpdatedEvent(PathId targetPathId, IPackage source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "删除了包后")]
     public class PackageRemovedEvent : DomainEvent<IPackage> {
-        public PackageRemovedEvent(PathId routeToPathId, IPackage source) : base(routeToPathId, source) {
+        public PackageRemovedEvent(PathId targetPathId, IPackage source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -914,19 +914,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了内核后")]
     public class KernelAddedEvent : DomainEvent<IKernel> {
-        public KernelAddedEvent(PathId routeToPathId, IKernel source) : base(routeToPathId, source) {
+        public KernelAddedEvent(PathId targetPathId, IKernel source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了内核后")]
     public class KernelUpdatedEvent : DomainEvent<IKernel> {
-        public KernelUpdatedEvent(PathId routeToPathId, IKernel source) : base(routeToPathId, source) {
+        public KernelUpdatedEvent(PathId targetPathId, IKernel source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "删除了内核后")]
     public class KernelRemovedEvent : DomainEvent<IKernel> {
-        public KernelRemovedEvent(PathId routeToPathId, IKernel source) : base(routeToPathId, source) {
+        public KernelRemovedEvent(PathId targetPathId, IKernel source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -952,19 +952,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了内核输入组后")]
     public class KernelInputAddedEvent : DomainEvent<IKernelInput> {
-        public KernelInputAddedEvent(PathId routeToPathId, IKernelInput source) : base(routeToPathId, source) {
+        public KernelInputAddedEvent(PathId targetPathId, IKernelInput source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了内核输入组后")]
     public class KernelInputUpdatedEvent : DomainEvent<IKernelInput> {
-        public KernelInputUpdatedEvent(PathId routeToPathId, IKernelInput source) : base(routeToPathId, source) {
+        public KernelInputUpdatedEvent(PathId targetPathId, IKernelInput source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了内核输入组后")]
     public class KernelInputRemovedEvent : DomainEvent<IKernelInput> {
-        public KernelInputRemovedEvent(PathId routeToPathId, IKernelInput source) : base(routeToPathId, source) {
+        public KernelInputRemovedEvent(PathId targetPathId, IKernelInput source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -990,19 +990,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了内核输出组后")]
     public class KernelOutputAddedEvent : DomainEvent<IKernelOutput> {
-        public KernelOutputAddedEvent(PathId routeToPathId, IKernelOutput source) : base(routeToPathId, source) {
+        public KernelOutputAddedEvent(PathId targetPathId, IKernelOutput source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了内核输出组后")]
     public class KernelOutputUpdatedEvent : DomainEvent<IKernelOutput> {
-        public KernelOutputUpdatedEvent(PathId routeToPathId, IKernelOutput source) : base(routeToPathId, source) {
+        public KernelOutputUpdatedEvent(PathId targetPathId, IKernelOutput source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了内核输出组后")]
     public class KernelOutputRemovedEvent : DomainEvent<IKernelOutput> {
-        public KernelOutputRemovedEvent(PathId routeToPathId, IKernelOutput source) : base(routeToPathId, source) {
+        public KernelOutputRemovedEvent(PathId targetPathId, IKernelOutput source) : base(targetPathId, source) {
         }
     }
     #endregion
@@ -1028,19 +1028,19 @@ namespace NTMiner.Core {
 
     [MessageType(description: "添加了内核输出翻译器后")]
     public class KernelOutputTranslaterAddedEvent : DomainEvent<IKernelOutputTranslater> {
-        public KernelOutputTranslaterAddedEvent(PathId routeToPathId, IKernelOutputTranslater source) : base(routeToPathId, source) {
+        public KernelOutputTranslaterAddedEvent(PathId targetPathId, IKernelOutputTranslater source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了内核输出翻译器后")]
     public class KernelOutputTranslaterUpdatedEvent : DomainEvent<IKernelOutputTranslater> {
-        public KernelOutputTranslaterUpdatedEvent(PathId routeToPathId, IKernelOutputTranslater source) : base(routeToPathId, source) {
+        public KernelOutputTranslaterUpdatedEvent(PathId targetPathId, IKernelOutputTranslater source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了内核输出翻译器后")]
     public class KernelOutputTranslaterRemovedEvent : DomainEvent<IKernelOutputTranslater> {
-        public KernelOutputTranslaterRemovedEvent(PathId routeToPathId, IKernelOutputTranslater source) : base(routeToPathId, source) {
+        public KernelOutputTranslaterRemovedEvent(PathId targetPathId, IKernelOutputTranslater source) : base(targetPathId, source) {
         }
     }
     #endregion

+ 1 - 1
src/NTMinerClient/Core/Profiles/Impl/GpuProfileSet.cs

@@ -28,7 +28,7 @@ namespace NTMiner.Core.Profiles.Impl {
             VirtualRoot.AddCmdPath<CoinOverClockCommand>(action: message => {
                 Task.Factory.StartNew(() => {
                     CoinOverClock(root, message.CoinId);
-                    VirtualRoot.RaiseEvent(new CoinOverClockDoneEvent(routeToPathId: message.Id));
+                    VirtualRoot.RaiseEvent(new CoinOverClockDoneEvent(targetPathId: message.Id));
                 });
             }, location: this.GetType());
         }

+ 3 - 3
src/NTMinerHub/Hub/DomainEvent`1.cs

@@ -2,15 +2,15 @@
 
 namespace NTMiner.Hub {
     public abstract class DomainEvent<TEntity> : IEvent {
-        protected DomainEvent(PathId routeToPathId, TEntity source) {
+        protected DomainEvent(PathId targetPathId, TEntity source) {
             this.Id = Guid.NewGuid();
-            this.RouteToPathId = routeToPathId;
+            this.TargetPathId = targetPathId;
             this.Target = source;
             this.BornOn = DateTime.Now;
         }
 
         public Guid Id { get; private set; }
-        public PathId RouteToPathId { get; private set; }
+        public PathId TargetPathId { get; private set; }
         public DateTime BornOn { get; private set; }
         public TEntity Target { get; private set; }
     }

+ 4 - 4
src/NTMinerHub/Hub/EventBase.cs

@@ -5,16 +5,16 @@ namespace NTMiner.Hub {
         protected EventBase() {
             this.Id = Guid.NewGuid();
             this.BornOn = DateTime.Now;
-            this.RouteToPathId = PathId.Empty;
+            this.TargetPathId = PathId.Empty;
         }
 
-        protected EventBase(PathId routeToPathId) : this() {
-            this.RouteToPathId = routeToPathId;
+        protected EventBase(PathId targetPathId) : this() {
+            this.TargetPathId = targetPathId;
         }
 
         public Guid Id { get; private set; }
 
-        public PathId RouteToPathId { get; private set; }
+        public PathId TargetPathId { get; private set; }
 
         public DateTime BornOn { get; private set; }
     }

+ 1 - 1
src/NTMinerHub/Hub/IEvent.cs

@@ -2,7 +2,7 @@
     using System;
 
     public interface IEvent : IMessage {
-        PathId RouteToPathId { get; }
+        PathId TargetPathId { get; }
         DateTime BornOn { get; }
     }
 }

+ 2 - 2
src/NTMinerHub/Hub/MessageHub.cs

@@ -116,9 +116,9 @@
                     bool canGo = false;
                     if (message is IEvent evt) {
                         canGo = 
-                            evt.RouteToPathId == PathId.Empty // 事件不是特定路径的事件则放行
+                            evt.TargetPathId == PathId.Empty // 事件不是特定路径的事件则放行
                             || messagePath.PathId == PathId.Empty // 路径不是特定事件的路径则放行
-                            || evt.RouteToPathId == messagePath.PathId; // 路径是特定事件的路径且路径和事件造型放行
+                            || evt.TargetPathId == messagePath.PathId; // 路径是特定事件的路径且路径和事件造型放行
                     }
                     else if (message is ICmd cmd) {
                         // 路径不是特定命令的路径则放行

+ 1 - 1
src/NTMinerHub/Hub/PathId.cs

@@ -2,7 +2,7 @@
 
 namespace NTMiner.Hub {
     /// <summary>
-    /// 消息和消息路径的标识。对Guid的包装,只为词汇,只为可读。
+    /// 消息路径的标识或消息的目标路径的标识。对Guid的包装,只为词汇,只为可读。
     /// </summary>
     public struct PathId {
         public static PathId Empty = new PathId(Guid.Empty);

+ 6 - 6
src/NTMinerlib/Messages.cs

@@ -65,7 +65,7 @@ namespace NTMiner {
 
     [MessageType(description: "ServerAppSetting变更后")]
     public class ServerAppSettingSetedEvent : DomainEvent<IAppSetting> {
-        public ServerAppSettingSetedEvent(PathId routeToPathId, IAppSetting source) : base(routeToPathId, source) {
+        public ServerAppSettingSetedEvent(PathId targetPathId, IAppSetting source) : base(targetPathId, source) {
         }
     }
 
@@ -98,7 +98,7 @@ namespace NTMiner {
 
     [MessageType(description: "LocalAppSetting变更后")]
     public class LocalAppSettingChangedEvent : DomainEvent<IAppSetting> {
-        public LocalAppSettingChangedEvent(PathId routeToPathId, IAppSetting source) : base(routeToPathId, source) {
+        public LocalAppSettingChangedEvent(PathId targetPathId, IAppSetting source) : base(targetPathId, source) {
         }
     }
 
@@ -131,13 +131,13 @@ namespace NTMiner {
 
     [MessageType(description: "添加了用户自定义内核输出关键字后")]
     public class UserKernelOutputKeywordAddedEvent : DomainEvent<IKernelOutputKeyword> {
-        public UserKernelOutputKeywordAddedEvent(PathId routeToPathId, IKernelOutputKeyword source) : base(routeToPathId, source) {
+        public UserKernelOutputKeywordAddedEvent(PathId targetPathId, IKernelOutputKeyword source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "更新了用户自定义内核输出关键字后")]
     public class UserKernelOutputKeywordUpdatedEvent : DomainEvent<IKernelOutputKeyword> {
-        public UserKernelOutputKeywordUpdatedEvent(PathId routeToPathId, IKernelOutputKeyword source) : base(routeToPathId, source) {
+        public UserKernelOutputKeywordUpdatedEvent(PathId targetPathId, IKernelOutputKeyword source) : base(targetPathId, source) {
         }
     }
 
@@ -149,7 +149,7 @@ namespace NTMiner {
 
     [MessageType(description: "移除了用户自定义内核输出关键字后")]
     public class UserKernelOutputKeywordRemovedEvent : DomainEvent<IKernelOutputKeyword> {
-        public UserKernelOutputKeywordRemovedEvent(PathId routeToPathId, IKernelOutputKeyword source) : base(routeToPathId, source) {
+        public UserKernelOutputKeywordRemovedEvent(PathId targetPathId, IKernelOutputKeyword source) : base(targetPathId, source) {
 
         }
     }
@@ -163,7 +163,7 @@ namespace NTMiner {
 
     [MessageType(description: "记录了本地事件后")]
     public class LocalMessageAddedEvent : DomainEvent<ILocalMessage> {
-        public LocalMessageAddedEvent(PathId routeToPathId, ILocalMessage source, List<ILocalMessage> removes) : base(routeToPathId, source) {
+        public LocalMessageAddedEvent(PathId targetPathId, ILocalMessage source, List<ILocalMessage> removes) : base(targetPathId, source) {
             this.Removes = removes ?? new List<ILocalMessage>();
         }
 

+ 3 - 3
src/NTMinerlib/User/Messages.cs

@@ -55,19 +55,19 @@ namespace NTMiner.User {
 
     [MessageType(description: "添加了新用户后")]
     public class UserAddedEvent : DomainEvent<IUser> {
-        public UserAddedEvent(PathId routeToPathId, IUser source) : base(routeToPathId, source) {
+        public UserAddedEvent(PathId targetPathId, IUser source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "修改了用户后")]
     public class UserUpdatedEvent : DomainEvent<IUser> {
-        public UserUpdatedEvent(PathId routeToPathId, IUser source) : base(routeToPathId, source) {
+        public UserUpdatedEvent(PathId targetPathId, IUser source) : base(targetPathId, source) {
         }
     }
 
     [MessageType(description: "移除了用户后")]
     public class UserRemovedEvent : DomainEvent<IUser> {
-        public UserRemovedEvent(PathId routeToPathId, IUser source) : base(routeToPathId, source) {
+        public UserRemovedEvent(PathId targetPathId, IUser source) : base(targetPathId, source) {
         }
     }
 }