| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042 |
- using NTMiner.Bus;
- using NTMiner.Core.Gpus;
- using NTMiner.MinerServer;
- using NTMiner.Profile;
- using System;
- namespace NTMiner.Core {
- public class ServerJsonVersionChangedEvent : EventBase {
- public ServerJsonVersionChangedEvent(string oldVersion, string newVersion) {
- this.OldVersion = oldVersion;
- this.NewVersion = newVersion;
- }
- public string OldVersion { get; private set; }
- public string NewVersion { get; private set; }
- }
- [MessageType(description: "电价变更后")]
- public class EPriceChangedEvent : EventBase {
- public EPriceChangedEvent() {
- }
- }
- [MessageType(description: "功耗补偿变更后")]
- public class PowerAppendChangedEvent : EventBase {
- public PowerAppendChangedEvent() { }
- }
- [MessageType(description: "高温红色阈值变更后")]
- public class MaxTempChangedEvent : EventBase {
- public MaxTempChangedEvent() { }
- }
- [MessageType(description: "收益计算器数据集初始化后")]
- public class CalcConfigSetInitedEvent : EventBase {
- public CalcConfigSetInitedEvent() {
- }
- }
- [MessageType(description: "从内核输出中提取了矿池延时")]
- public class PoolDelayPickedEvent : EventBase {
- public PoolDelayPickedEvent(Guid poolId, bool isDual, string poolDelay) {
- this.PoolDelayText = poolDelay;
- this.PoolId = poolId;
- this.IsDual = isDual;
- }
- public Guid PoolId { get; private set; }
- public bool IsDual { get; private set; }
- /// <summary>
- /// 矿池延时只用于展示,没有其它用户所以是字符串
- /// </summary>
- public string PoolDelayText { get; private set; }
- }
- [MessageType(description: "CPU包的状态发生了变更")]
- public class CpuPackageStateChangedEvent : EventBase {
- public CpuPackageStateChangedEvent() {
- }
- }
- #region toolbox
- [MessageType(description: "禁用win10系统更新")]
- public class BlockWAUCommand : Cmd {
- public BlockWAUCommand() { }
- }
- [MessageType(description: "优化window10")]
- public class Win10OptimizeCommand : Cmd {
- public Win10OptimizeCommand() { }
- }
- [MessageType(description: "开起A卡计算模式")]
- public class SwitchRadeonGpuCommand : Cmd {
- public SwitchRadeonGpuCommand(bool on) {
- this.On = on;
- }
- public bool On { get; private set; }
- }
- [MessageType(description: "A卡驱动签名")]
- public class AtikmdagPatcherCommand : Cmd {
- public AtikmdagPatcherCommand() {
- }
- }
- [MessageType(description: "注册右键打开windindows命令行菜单")]
- public class RegCmdHereCommand : Cmd {
- public RegCmdHereCommand() { }
- }
- #endregion
- #region profile Messages
- [MessageType(description: "MinerProfile设置变更后")]
- public class MinerProfilePropertyChangedEvent : EventBase {
- public MinerProfilePropertyChangedEvent(string propertyName) {
- this.PropertyName = propertyName;
- }
- public string PropertyName { get; private set; }
- }
- [MessageType(description: "挖矿币种级设置变更后")]
- public class CoinProfilePropertyChangedEvent : EventBase {
- public CoinProfilePropertyChangedEvent(Guid coinId, string propertyName) {
- this.CoinId = coinId;
- this.PropertyName = propertyName;
- }
- public Guid CoinId { get; }
- public string PropertyName { get; private set; }
- }
- [MessageType(description: "矿池级设置变更后")]
- public class PoolProfilePropertyChangedEvent : EventBase {
- public PoolProfilePropertyChangedEvent(Guid coinId, string propertyName) {
- this.PoolId = coinId;
- this.PropertyName = propertyName;
- }
- public Guid PoolId { get; }
- public string PropertyName { get; private set; }
- }
- [MessageType(description: "挖矿币种内核级设置变更后")]
- public class CoinKernelProfilePropertyChangedEvent : EventBase {
- public CoinKernelProfilePropertyChangedEvent(Guid coinKernelId, string propertyName) {
- this.CoinKernelId = coinKernelId;
- this.PropertyName = propertyName;
- }
- public Guid CoinKernelId { get; }
- public string PropertyName { get; private set; }
- }
- [MessageType(description: "Gpu超频集合刷新后")]
- public class GpuProfileSetRefreshedEvent : EventBase {
- public GpuProfileSetRefreshedEvent() { }
- }
- #endregion
- #region MineWork Messages
- [MessageType(description: "添加工作")]
- public class AddMineWorkCommand : AddEntityCommand<IMineWork> {
- public AddMineWorkCommand(IMineWork input) : base(input) {
- }
- }
- [MessageType(description: "更新工作")]
- public class UpdateMineWorkCommand : UpdateEntityCommand<IMineWork> {
- public UpdateMineWorkCommand(IMineWork input) : base(input) {
- }
- }
- [MessageType(description: "删除工作")]
- public class RemoveMineWorkCommand : RemoveEntityCommand {
- public RemoveMineWorkCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加工作后")]
- public class MineWorkAddedEvent : DomainEvent<IMineWork> {
- public MineWorkAddedEvent(Guid pathId, IMineWork source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新工作后")]
- public class MineWorkUpdatedEvent : DomainEvent<IMineWork> {
- public MineWorkUpdatedEvent(Guid pathId, IMineWork source) : base(pathId, source) {
- }
- }
- [MessageType(description: "删除工作后")]
- public class MineWorkRemovedEvent : DomainEvent<IMineWork> {
- public MineWorkRemovedEvent(Guid pathId, IMineWork source) : base(pathId, source) {
- }
- }
- #endregion
- #region MinerGroup Messages
- [MessageType(description: "添加矿机分组")]
- public class AddMinerGroupCommand : AddEntityCommand<IMinerGroup> {
- public AddMinerGroupCommand(IMinerGroup input) : base(input) {
- }
- }
- [MessageType(description: "更新矿机分组")]
- public class UpdateMinerGroupCommand : UpdateEntityCommand<IMinerGroup> {
- public UpdateMinerGroupCommand(IMinerGroup input) : base(input) {
- }
- }
- [MessageType(description: "删除矿机分组")]
- public class RemoveMinerGroupCommand : RemoveEntityCommand {
- public RemoveMinerGroupCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加矿机分组后")]
- public class MinerGroupAddedEvent : DomainEvent<IMinerGroup> {
- public MinerGroupAddedEvent(Guid pathId, IMinerGroup source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新矿机分组后")]
- public class MinerGroupUpdatedEvent : DomainEvent<IMinerGroup> {
- public MinerGroupUpdatedEvent(Guid pathId, IMinerGroup source) : base(pathId, source) {
- }
- }
- [MessageType(description: "删除矿机分组后")]
- public class MinerGroupRemovedEvent : DomainEvent<IMinerGroup> {
- public MinerGroupRemovedEvent(Guid pathId, IMinerGroup source) : base(pathId, source) {
- }
- }
- #endregion
- #region NTMinerWallet Messages
- [MessageType(description: "添加NTMiner钱包")]
- public class AddNTMinerWalletCommand : AddEntityCommand<INTMinerWallet> {
- public AddNTMinerWalletCommand(INTMinerWallet input) : base(input) {
- }
- }
- [MessageType(description: "更新NTMiner钱包")]
- public class UpdateNTMinerWalletCommand : UpdateEntityCommand<INTMinerWallet> {
- public UpdateNTMinerWalletCommand(INTMinerWallet input) : base(input) {
- }
- }
- [MessageType(description: "删除NTMiner钱包")]
- public class RemoveNTMinerWalletCommand : RemoveEntityCommand {
- public RemoveNTMinerWalletCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加NTMiner钱包后")]
- public class NTMinerWalletAddedEvent : DomainEvent<INTMinerWallet> {
- public NTMinerWalletAddedEvent(Guid pathId, INTMinerWallet source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新NTMiner钱包后")]
- public class NTMinerWalletUpdatedEvent : DomainEvent<INTMinerWallet> {
- public NTMinerWalletUpdatedEvent(Guid pathId, INTMinerWallet source) : base(pathId, source) {
- }
- }
- [MessageType(description: "删除NTMiner钱包后")]
- public class NTMinerWalletRemovedEvent : DomainEvent<INTMinerWallet> {
- public NTMinerWalletRemovedEvent(Guid pathId, INTMinerWallet source) : base(pathId, source) {
- }
- }
- #endregion
- #region OverClockData Messages
- [MessageType(description: "添加超频建议")]
- public class AddOverClockDataCommand : AddEntityCommand<IOverClockData> {
- public AddOverClockDataCommand(IOverClockData input) : base(input) {
- }
- }
- [MessageType(description: "更新超频建议")]
- public class UpdateOverClockDataCommand : UpdateEntityCommand<IOverClockData> {
- public UpdateOverClockDataCommand(IOverClockData input) : base(input) {
- }
- }
- [MessageType(description: "删除超频建议")]
- public class RemoveOverClockDataCommand : RemoveEntityCommand {
- public RemoveOverClockDataCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加超频建议后")]
- public class OverClockDataAddedEvent : DomainEvent<IOverClockData> {
- public OverClockDataAddedEvent(Guid pathId, IOverClockData source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新超频建议后")]
- public class OverClockDataUpdatedEvent : DomainEvent<IOverClockData> {
- public OverClockDataUpdatedEvent(Guid pathId, IOverClockData source) : base(pathId, source) {
- }
- }
- [MessageType(description: "删除超频建议后")]
- public class OverClockDataRemovedEvent : DomainEvent<IOverClockData> {
- public OverClockDataRemovedEvent(Guid pathId, IOverClockData source) : base(pathId, source) {
- }
- }
- [MessageType(description: "超频建议集初始化后")]
- public class OverClockDataSetInitedEvent : EventBase {
- public OverClockDataSetInitedEvent() {
- }
- }
- [MessageType(description: "NTMiner钱包集初始化后")]
- public class NTMinerWalletSetInitedEvent : EventBase {
- public NTMinerWalletSetInitedEvent() {
- }
- }
- #endregion
- #region ColumnsShow Messages
- [MessageType(description: "添加矿机分组")]
- public class AddColumnsShowCommand : AddEntityCommand<IColumnsShow> {
- public AddColumnsShowCommand(IColumnsShow input) : base(input) {
- }
- }
- [MessageType(description: "更新列显")]
- public class UpdateColumnsShowCommand : UpdateEntityCommand<IColumnsShow> {
- public UpdateColumnsShowCommand(IColumnsShow input) : base(input) {
- }
- }
- [MessageType(description: "删除列显")]
- public class RemoveColumnsShowCommand : RemoveEntityCommand {
- public RemoveColumnsShowCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加列显后")]
- public class ColumnsShowAddedEvent : DomainEvent<IColumnsShow> {
- public ColumnsShowAddedEvent(Guid pathId, IColumnsShow source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新列显后")]
- public class ColumnsShowUpdatedEvent : DomainEvent<IColumnsShow> {
- public ColumnsShowUpdatedEvent(Guid pathId, IColumnsShow source) : base(pathId, source) {
- }
- }
- [MessageType(description: "删除列显后")]
- public class ColumnsShowRemovedEvent : DomainEvent<IColumnsShow> {
- public ColumnsShowRemovedEvent(Guid pathId, IColumnsShow source) : base(pathId, source) {
- }
- }
- #endregion
- #region gpu overclock
- [MessageType(description: "添加或更新Gpu超频数据")]
- public class AddOrUpdateGpuProfileCommand : Cmd {
- public AddOrUpdateGpuProfileCommand(IGpuProfile input) {
- this.Input = input;
- }
- public IGpuProfile Input { get; private set; }
- }
- [MessageType(description: "币种超频")]
- public class CoinOverClockCommand : Cmd {
- public CoinOverClockCommand(Guid coinId) {
- this.CoinId = coinId;
- }
- public Guid CoinId { get; private set; }
- }
-
- [MessageType(description: "币种超频完成后")]
- public class CoinOverClockDoneEvent : EventBase {
- public CoinOverClockDoneEvent(Guid pathId) : base(pathId) {
- }
- }
- [MessageType(description: "Gpu超频数据添加或更新后")]
- public class GpuProfileAddedOrUpdatedEvent : DomainEvent<IGpuProfile> {
- public GpuProfileAddedOrUpdatedEvent(Guid pathId, IGpuProfile source) : base(pathId, source) {
- }
- }
- #endregion
- #region speed and share
- [MessageType(description: "显卡算力变更事件")]
- public class GpuSpeedChangedEvent : DomainEvent<IGpuSpeed> {
- public GpuSpeedChangedEvent(bool isDual, Guid pathId, IGpuSpeed gpuSpeed) : base(pathId, gpuSpeed) {
- this.IsDual = isDual;
- }
- public bool IsDual { get; private set; }
- }
- [MessageType(description: "显卡份额变更事件")]
- public class GpuShareChangedEvent : DomainEvent<IGpuSpeed> {
- public GpuShareChangedEvent(Guid pathId, IGpuSpeed gpuSpeed) : base(pathId, gpuSpeed) {
- }
- }
- [MessageType(description: "找到了一个份额")]
- public class FoundShareIncreasedEvent : DomainEvent<IGpuSpeed> {
- public FoundShareIncreasedEvent(Guid pathId, IGpuSpeed gpuSpeed) : base(pathId, gpuSpeed) {
- }
- }
- [MessageType(description: "接受了一个份额")]
- public class AcceptShareIncreasedEvent : DomainEvent<IGpuSpeed> {
- public AcceptShareIncreasedEvent(Guid pathId, IGpuSpeed gpuSpeed) : base(pathId, gpuSpeed) {
- }
- }
- [MessageType(description: "拒绝了一个份额")]
- public class RejectShareIncreasedEvent : DomainEvent<IGpuSpeed> {
- public RejectShareIncreasedEvent(Guid pathId, IGpuSpeed gpuSpeed) : base(pathId, gpuSpeed) {
- }
- }
- [MessageType(description: "算错了一个份额")]
- public class IncorrectShareIncreasedEvent : DomainEvent<IGpuSpeed> {
- public IncorrectShareIncreasedEvent(Guid pathId, IGpuSpeed gpuSpeed) : base(pathId, gpuSpeed) {
- }
- }
- [MessageType(description: "收益变更事件")]
- public class ShareChangedEvent : DomainEvent<ICoinShare> {
- public ShareChangedEvent(Guid pathId, ICoinShare share) : base(pathId, share) {
- }
- }
- #endregion
- #region Gpu Messages
- [MessageType(description: "显卡状态变更事件", isCanNoHandler: true)]
- public class GpuStateChangedEvent : DomainEvent<IGpu> {
- public GpuStateChangedEvent(Guid pathId, IGpu source) : base(pathId, source) {
- }
- }
- #endregion
- #region SysDic Messages
- [MessageType(description: "添加系统字典")]
- public class AddSysDicCommand : AddEntityCommand<ISysDic> {
- public AddSysDicCommand(ISysDic input) : base(input) {
- }
- }
- [MessageType(description: "更新系统字典")]
- public class UpdateSysDicCommand : UpdateEntityCommand<ISysDic> {
- public UpdateSysDicCommand(ISysDic input) : base(input) {
- }
- }
- [MessageType(description: "删除系统字典")]
- public class RemoveSysDicCommand : RemoveEntityCommand {
- public RemoveSysDicCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加系统字典后")]
- public class SysDicAddedEvent : DomainEvent<ISysDic> {
- public SysDicAddedEvent(Guid pathId, ISysDic source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新系统字典后")]
- public class SysDicUpdatedEvent : DomainEvent<ISysDic> {
- public SysDicUpdatedEvent(Guid pathId, ISysDic source) : base(pathId, source) {
- }
- }
- [MessageType(description: "删除系统字典后")]
- public class SysDicRemovedEvent : DomainEvent<ISysDic> {
- public SysDicRemovedEvent(Guid pathId, ISysDic source) : base(pathId, source) {
- }
- }
- #endregion
- #region SysDicItem Messages
- [MessageType(description: "添加系统字典项")]
- public class AddSysDicItemCommand : AddEntityCommand<ISysDicItem> {
- public AddSysDicItemCommand(ISysDicItem input) : base(input) {
- }
- }
- [MessageType(description: "更新系统字典项")]
- public class UpdateSysDicItemCommand : UpdateEntityCommand<ISysDicItem> {
- public UpdateSysDicItemCommand(ISysDicItem input) : base(input) {
- }
- }
- [MessageType(description: "移除系统字典项")]
- public class RemoveSysDicItemCommand : RemoveEntityCommand {
- public RemoveSysDicItemCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了系统字典项后")]
- public class SysDicItemAddedEvent : DomainEvent<ISysDicItem> {
- public SysDicItemAddedEvent(Guid pathId, ISysDicItem source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了系统字典项后")]
- public class SysDicItemUpdatedEvent : DomainEvent<ISysDicItem> {
- public SysDicItemUpdatedEvent(Guid pathId, ISysDicItem source) : base(pathId, source) {
- }
- }
- [MessageType(description: "删除了系统字典项后")]
- public class SysDicItemRemovedEvent : DomainEvent<ISysDicItem> {
- public SysDicItemRemovedEvent(Guid pathId, ISysDicItem source) : base(pathId, source) {
- }
- }
- #endregion
- #region Coin Messages
- [MessageType(description: "添加币种")]
- public class AddCoinCommand : AddEntityCommand<ICoin> {
- public AddCoinCommand(ICoin input) : base(input) {
- }
- }
- [MessageType(description: "更新币种")]
- public class UpdateCoinCommand : UpdateEntityCommand<ICoin> {
- public UpdateCoinCommand(ICoin input) : base(input) {
- }
- }
- [MessageType(description: "移除币种")]
- public class RemoveCoinCommand : RemoveEntityCommand {
- public RemoveCoinCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了币种后")]
- public class CoinAddedEvent : DomainEvent<ICoin> {
- public CoinAddedEvent(Guid pathId, ICoin source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了币种后")]
- public class CoinUpdatedEvent : DomainEvent<ICoin> {
- public CoinUpdatedEvent(Guid pathId, ICoin source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了币种后")]
- public class CoinRemovedEvent : DomainEvent<ICoin> {
- public CoinRemovedEvent(Guid pathId, ICoin source) : base(pathId, source) {
- }
- }
- [MessageType(description: "下载了币种图标后")]
- public class CoinIconDownloadedEvent : DomainEvent<ICoin> {
- public CoinIconDownloadedEvent(Guid pathId, ICoin source) : base(pathId, source) {
- }
- }
- #endregion
- #region Group Messages
- [MessageType(description: "添加组")]
- public class AddGroupCommand : AddEntityCommand<IGroup> {
- public AddGroupCommand(IGroup input) : base(input) {
- }
- }
- [MessageType(description: "更新组")]
- public class UpdateGroupCommand : UpdateEntityCommand<IGroup> {
- public UpdateGroupCommand(IGroup input) : base(input) {
- }
- }
- [MessageType(description: "移除组")]
- public class RemoveGroupCommand : RemoveEntityCommand {
- public RemoveGroupCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了组后")]
- public class GroupAddedEvent : DomainEvent<IGroup> {
- public GroupAddedEvent(Guid pathId, IGroup source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了组后")]
- public class GroupUpdatedEvent : DomainEvent<IGroup> {
- public GroupUpdatedEvent(Guid pathId, IGroup source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了组后")]
- public class GroupRemovedEvent : DomainEvent<IGroup> {
- public GroupRemovedEvent(Guid pathId, IGroup source) : base(pathId, source) {
- }
- }
- #endregion
- #region CoinGroup Messages
- [MessageType(description: "添加币组")]
- public class AddCoinGroupCommand : AddEntityCommand<ICoinGroup> {
- public AddCoinGroupCommand(ICoinGroup input) : base(input) {
- }
- }
- [MessageType(description: "修改币组")]
- public class UpdateCoinGroupCommand : UpdateEntityCommand<ICoinGroup> {
- public UpdateCoinGroupCommand(ICoinGroup input) : base(input) {
- }
- }
- [MessageType(description: "移除币组")]
- public class RemoveCoinGroupCommand : RemoveEntityCommand {
- public RemoveCoinGroupCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了币组后")]
- public class CoinGroupAddedEvent : DomainEvent<ICoinGroup> {
- public CoinGroupAddedEvent(Guid pathId, ICoinGroup source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了币组后")]
- public class CoinGroupRemovedEvent : DomainEvent<ICoinGroup> {
- public CoinGroupRemovedEvent(Guid pathId, ICoinGroup source) : base(pathId, source) {
- }
- }
- #endregion
- #region FileWriter Messages
- [MessageType(description: "添加文件书写器")]
- public class AddFileWriterCommand : AddEntityCommand<IFileWriter> {
- public AddFileWriterCommand(IFileWriter input) : base(input) {
- }
- }
- [MessageType(description: "更新文件书写器")]
- public class UpdateFileWriterCommand : UpdateEntityCommand<IFileWriter> {
- public UpdateFileWriterCommand(IFileWriter input) : base(input) {
- }
- }
- [MessageType(description: "移除文件书写器")]
- public class RemoveFileWriterCommand : RemoveEntityCommand {
- public RemoveFileWriterCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了文件书写器后")]
- public class FileWriterAddedEvent : DomainEvent<IFileWriter> {
- public FileWriterAddedEvent(Guid pathId, IFileWriter source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了文件书写器后")]
- public class FileWriterUpdatedEvent : DomainEvent<IFileWriter> {
- public FileWriterUpdatedEvent(Guid pathId, IFileWriter source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了文件书写器后")]
- public class FileWriterRemovedEvent : DomainEvent<IFileWriter> {
- public FileWriterRemovedEvent(Guid pathId, IFileWriter source) : base(pathId, source) {
- }
- }
- #endregion
- #region FragmentWriter Messages
- [MessageType(description: "添加命令行片段书写器")]
- public class AddFragmentWriterCommand : AddEntityCommand<IFragmentWriter> {
- public AddFragmentWriterCommand(IFragmentWriter input) : base(input) {
- }
- }
- [MessageType(description: "更新命令行片段书写器")]
- public class UpdateFragmentWriterCommand : UpdateEntityCommand<IFragmentWriter> {
- public UpdateFragmentWriterCommand(IFragmentWriter input) : base(input) {
- }
- }
- [MessageType(description: "移除命令行片段书写器")]
- public class RemoveFragmentWriterCommand : RemoveEntityCommand {
- public RemoveFragmentWriterCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了命令行片段书写器后")]
- public class FragmentWriterAddedEvent : DomainEvent<IFragmentWriter> {
- public FragmentWriterAddedEvent(Guid pathId, IFragmentWriter source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了命令行片段书写器后")]
- public class FragmentWriterUpdatedEvent : DomainEvent<IFragmentWriter> {
- public FragmentWriterUpdatedEvent(Guid pathId, IFragmentWriter source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了命令行片段书写器后")]
- public class FragmentWriterRemovedEvent : DomainEvent<IFragmentWriter> {
- public FragmentWriterRemovedEvent(Guid pathId, IFragmentWriter source) : base(pathId, source) {
- }
- }
- #endregion
- #region Wallet Messages
- [MessageType(description: "添加钱包")]
- public class AddWalletCommand : AddEntityCommand<IWallet> {
- public AddWalletCommand(IWallet input) : base(input) {
- }
- }
- [MessageType(description: "更新钱包")]
- public class UpdateWalletCommand : UpdateEntityCommand<IWallet> {
- public UpdateWalletCommand(IWallet input) : base(input) {
- }
- }
- [MessageType(description: "移除钱包")]
- public class RemoveWalletCommand : RemoveEntityCommand {
- public RemoveWalletCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了钱包后")]
- public class WalletAddedEvent : DomainEvent<IWallet> {
- public WalletAddedEvent(Guid pathId, IWallet source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了钱包后")]
- public class WalletUpdatedEvent : DomainEvent<IWallet> {
- public WalletUpdatedEvent(Guid pathId, IWallet source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了钱包后")]
- public class WalletRemovedEvent : DomainEvent<IWallet> {
- public WalletRemovedEvent(Guid pathId, IWallet source) : base(pathId, source) {
- }
- }
- #endregion
- #region Pool Messages
- [MessageType(description: "添加矿池")]
- public class AddPoolCommand : AddEntityCommand<IPool> {
- public AddPoolCommand(IPool input) : base(input) {
- }
- }
- [MessageType(description: "更新矿池")]
- public class UpdatePoolCommand : UpdateEntityCommand<IPool> {
- public UpdatePoolCommand(IPool input) : base(input) {
- }
- }
- [MessageType(description: "移除矿池")]
- public class RemovePoolCommand : RemoveEntityCommand {
- public RemovePoolCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了矿池后")]
- public class PoolAddedEvent : DomainEvent<IPool> {
- public PoolAddedEvent(Guid pathId, IPool source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了矿池后")]
- public class PoolUpdatedEvent : DomainEvent<IPool> {
- public PoolUpdatedEvent(Guid pathId, IPool source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了矿池后")]
- public class PoolRemovedEvent : DomainEvent<IPool> {
- public PoolRemovedEvent(Guid pathId, IPool source) : base(pathId, source) {
- }
- }
- #endregion
- #region CoinKernel Messages
- [MessageType(description: "添加币种级内核")]
- public class AddCoinKernelCommand : AddEntityCommand<ICoinKernel> {
- public AddCoinKernelCommand(ICoinKernel input) : base(input) {
- }
- }
- [MessageType(description: "更新币种级内核")]
- public class UpdateCoinKernelCommand : UpdateEntityCommand<ICoinKernel> {
- public UpdateCoinKernelCommand(ICoinKernel input) : base(input) {
- }
- }
- [MessageType(description: "移除币种级内核")]
- public class RemoveCoinKernelCommand : RemoveEntityCommand {
- public RemoveCoinKernelCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了币种级内核后")]
- public class CoinKernelAddedEvent : DomainEvent<ICoinKernel> {
- public CoinKernelAddedEvent(Guid pathId, ICoinKernel source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了币种级内核后")]
- public class CoinKernelUpdatedEvent : DomainEvent<ICoinKernel> {
- public CoinKernelUpdatedEvent(Guid pathId, ICoinKernel source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了币种级内核后")]
- public class CoinKernelRemovedEvent : DomainEvent<ICoinKernel> {
- public CoinKernelRemovedEvent(Guid pathId, ICoinKernel source) : base(pathId, source) {
- }
- }
- #endregion
- #region PoolKernel Messages
- [MessageType(description: "添加矿池级内核")]
- public class AddPoolKernelCommand : UpdateEntityCommand<IPoolKernel> {
- public AddPoolKernelCommand(IPoolKernel input) : base(input) {
- }
- }
- [MessageType(description: "更新矿池级内核")]
- public class UpdatePoolKernelCommand : UpdateEntityCommand<IPoolKernel> {
- public UpdatePoolKernelCommand(IPoolKernel input) : base(input) {
- }
- }
- [MessageType(description: "移除矿池级内核")]
- public class RemovePoolKernelCommand : RemoveEntityCommand {
- public RemovePoolKernelCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了矿池级内核后")]
- public class PoolKernelAddedEvent : DomainEvent<IPoolKernel> {
- public PoolKernelAddedEvent(Guid pathId, IPoolKernel source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了矿池级内核后")]
- public class PoolKernelUpdatedEvent : DomainEvent<IPoolKernel> {
- public PoolKernelUpdatedEvent(Guid pathId, IPoolKernel source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了矿池级内核后")]
- public class PoolKernelRemovedEvent : DomainEvent<IPoolKernel> {
- public PoolKernelRemovedEvent(Guid pathId, IPoolKernel source) : base(pathId, source) {
- }
- }
- #endregion
- #region Package Messages
- [MessageType(description: "添加包")]
- public class AddPackageCommand : AddEntityCommand<IPackage> {
- public AddPackageCommand(IPackage input) : base(input) {
- }
- }
- [MessageType(description: "更新包")]
- public class UpdatePackageCommand : UpdateEntityCommand<IPackage> {
- public UpdatePackageCommand(IPackage input) : base(input) {
- }
- }
- [MessageType(description: "删除包")]
- public class RemovePackageCommand : RemoveEntityCommand {
- public RemovePackageCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了包后")]
- public class PackageAddedEvent : DomainEvent<IPackage> {
- public PackageAddedEvent(Guid pathId, IPackage source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了包后")]
- public class PackageUpdatedEvent : DomainEvent<IPackage> {
- public PackageUpdatedEvent(Guid pathId, IPackage source) : base(pathId, source) {
- }
- }
- [MessageType(description: "删除了包后")]
- public class PackageRemovedEvent : DomainEvent<IPackage> {
- public PackageRemovedEvent(Guid pathId, IPackage source) : base(pathId, source) {
- }
- }
- #endregion
- #region Kernel Messages
- [MessageType(description: "添加内核")]
- public class AddKernelCommand : AddEntityCommand<IKernel> {
- public AddKernelCommand(IKernel input) : base(input) {
- }
- }
- [MessageType(description: "更新内核")]
- public class UpdateKernelCommand : UpdateEntityCommand<IKernel> {
- public UpdateKernelCommand(IKernel input) : base(input) {
- }
- }
- [MessageType(description: "删除内核")]
- public class RemoveKernelCommand : RemoveEntityCommand {
- public RemoveKernelCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了内核后")]
- public class KernelAddedEvent : DomainEvent<IKernel> {
- public KernelAddedEvent(Guid pathId, IKernel source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了内核后")]
- public class KernelUpdatedEvent : DomainEvent<IKernel> {
- public KernelUpdatedEvent(Guid pathId, IKernel source) : base(pathId, source) {
- }
- }
- [MessageType(description: "删除了内核后")]
- public class KernelRemovedEvent : DomainEvent<IKernel> {
- public KernelRemovedEvent(Guid pathId, IKernel source) : base(pathId, source) {
- }
- }
- #endregion
- #region KernelInput Messages
- [MessageType(description: "添加内核输入组")]
- public class AddKernelInputCommand : AddEntityCommand<IKernelInput> {
- public AddKernelInputCommand(IKernelInput input) : base(input) {
- }
- }
- [MessageType(description: "更新内核输入组")]
- public class UpdateKernelInputCommand : UpdateEntityCommand<IKernelInput> {
- public UpdateKernelInputCommand(IKernelInput input) : base(input) {
- }
- }
- [MessageType(description: "移除内核输入组")]
- public class RemoveKernelInputCommand : RemoveEntityCommand {
- public RemoveKernelInputCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了内核输入组后")]
- public class KernelInputAddedEvent : DomainEvent<IKernelInput> {
- public KernelInputAddedEvent(Guid pathId, IKernelInput source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了内核输入组后")]
- public class KernelInputUpdatedEvent : DomainEvent<IKernelInput> {
- public KernelInputUpdatedEvent(Guid pathId, IKernelInput source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了内核输入组后")]
- public class KernelInputRemovedEvent : DomainEvent<IKernelInput> {
- public KernelInputRemovedEvent(Guid pathId, IKernelInput source) : base(pathId, source) {
- }
- }
- #endregion
- #region KernelOutput Messages
- [MessageType(description: "添加内核输出组")]
- public class AddKernelOutputCommand : AddEntityCommand<IKernelOutput> {
- public AddKernelOutputCommand(IKernelOutput input) : base(input) {
- }
- }
- [MessageType(description: "更新内核输出组")]
- public class UpdateKernelOutputCommand : UpdateEntityCommand<IKernelOutput> {
- public UpdateKernelOutputCommand(IKernelOutput input) : base(input) {
- }
- }
- [MessageType(description: "移除内核输出组")]
- public class RemoveKernelOutputCommand : RemoveEntityCommand {
- public RemoveKernelOutputCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了内核输出组后")]
- public class KernelOutputAddedEvent : DomainEvent<IKernelOutput> {
- public KernelOutputAddedEvent(Guid pathId, IKernelOutput source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了内核输出组后")]
- public class KernelOutputUpdatedEvent : DomainEvent<IKernelOutput> {
- public KernelOutputUpdatedEvent(Guid pathId, IKernelOutput source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了内核输出组后")]
- public class KernelOutputRemovedEvent : DomainEvent<IKernelOutput> {
- public KernelOutputRemovedEvent(Guid pathId, IKernelOutput source) : base(pathId, source) {
- }
- }
- #endregion
- #region KernelOutputTranslater Messages
- [MessageType(description: "添加内核输出翻译器")]
- public class AddKernelOutputTranslaterCommand : AddEntityCommand<IKernelOutputTranslater> {
- public AddKernelOutputTranslaterCommand(IKernelOutputTranslater input) : base(input) {
- }
- }
- [MessageType(description: "更新内核输出翻译器")]
- public class UpdateKernelOutputTranslaterCommand : UpdateEntityCommand<IKernelOutputTranslater> {
- public UpdateKernelOutputTranslaterCommand(IKernelOutputTranslater input) : base(input) {
- }
- }
- [MessageType(description: "移除内核输出翻译器")]
- public class RemoveKernelOutputTranslaterCommand : RemoveEntityCommand {
- public RemoveKernelOutputTranslaterCommand(Guid entityId) : base(entityId) {
- }
- }
- [MessageType(description: "添加了内核输出翻译器后")]
- public class KernelOutputTranslaterAddedEvent : DomainEvent<IKernelOutputTranslater> {
- public KernelOutputTranslaterAddedEvent(Guid pathId, IKernelOutputTranslater source) : base(pathId, source) {
- }
- }
- [MessageType(description: "更新了内核输出翻译器后")]
- public class KernelOutputTranslaterUpdatedEvent : DomainEvent<IKernelOutputTranslater> {
- public KernelOutputTranslaterUpdatedEvent(Guid pathId, IKernelOutputTranslater source) : base(pathId, source) {
- }
- }
- [MessageType(description: "移除了内核输出翻译器后")]
- public class KernelOutputTranslaterRemovedEvent : DomainEvent<IKernelOutputTranslater> {
- public KernelOutputTranslaterRemovedEvent(Guid pathId, IKernelOutputTranslater source) : base(pathId, source) {
- }
- }
- #endregion
- }
|