Closed revam closed 2 years ago
The file events are tested on my machine:tm:
Just a noticed pattern - it seems very often you seem to be adding extra changes unrelated to what you are doing. For example
: EventArgs
to some of the already existing event args.If these are done for good reason, it's usually worth noting into the PR description
FileEventArgs
though, so it's easier to see what actually changed.*EventArgs
not extending System.EventArgs
(or a derived class) the same as an *Exception
not extending System.Exception
. Both patterns work in practice, but personally I don't like it.Will try to write more details in the description next time.
Fixed up the order of the existing fields, removed some empty lines at the beginning of the new files, and removed unused dependencies/imports in the new files.
- I didn't add any doc-blocks to any "random" objects in this PR — every added doc-block is followed by an added or updated field. I will reverse back the order of the fields in
FileEventArgs
though, so it's easier to see what actually changed.- Because to me is an
*EventArgs
not extendingSystem.EventArgs
(or a derived class) the same as an*Exception
not extendingSystem.Exception
. Both patterns work in practice, but personally I don't like it.Will try to write more details in the description next time.
For future reference, I would suggest discussing changes you want to make "because you don't like it" because there may be unknown side-effects, or reasons it has been done explicitly.
The reason I said random, is when looking at the issue itself, and documentation you had included, a lot of it seemed unrelated, to the scope of "Expose x events"
Further to this, when making any changes to Shoko.Plugin.Abstractions, it will force any person who uses daily and a custom plugin to rebuild it, because the dependency changes, so I would suggest only making necessary changes, or batching them together.
Further to this, when making any changes to Shoko.Plugin.Abstractions, it will force any person who uses daily and a custom plugin to rebuild it, because the dependency changes, so I would suggest only making necessary changes, or batching them together.
- I just batched them togther.
- I'm using my plugin built for 4.1.1 and it's working fine — even on the daily built earlier today — because I didn't touch any of the renamer events, only the new (and hopefully still unused) events introduced in (I think it was) 4.1.2.
expose the Shoko events through SignalR and refactor the plugin file events.