Commit Graph

427 Commits

Author SHA1 Message Date
RogueException
17ba8fe4d0 Better handle the primary alias. 2017-04-06 20:50:48 -03:00
RogueException
33cd1a6c9f Scan base types during DI injection 2017-04-06 20:29:42 -03:00
RogueException
14f0535a43 Improved typereader not found message 2017-04-05 23:53:20 -03:00
RogueException
b5d817f171 Cleaned up csprojs, added support for tag builds. 2017-04-01 11:11:09 -03:00
Christopher F
2b4a1249f4 Restrict DependencyMap#Get to reference types
It's impossible to add non-reference types to the map, so why allow pulling them out of it.
2017-03-25 17:08:45 -04:00
RogueException
bbd45a6f4b Fixed CommandException 2017-03-25 11:19:31 -03:00
Finite Reality
ca18eb0eb4 Replace TryGetValue call with TryRemove call (#586)
Resolves #584
2017-03-23 11:03:06 -03:00
RogueException
0c8d643519 Minor doc/exception edits 2017-03-18 23:22:39 -03:00
RogueException
3fb21e06c2 Fixed RunMode.Sync running Async. Added ThrowOnError option. 2017-03-18 21:38:28 -03:00
RogueException
ba07484fe9 Removed Mixed RunMode 2017-03-18 12:23:51 -03:00
RogueException
a2b12520b2 Added CommandService logging 2017-03-18 12:14:14 -03:00
Finite Reality
2160e5dac8 Improve parameter precondition type safety (#532)
* Improve parameter precondition type safety

Also removes some terrible code which was left over when I first
implemented parameter preconditions. I don't know why that was there.

With this commit, parameter preconditions should be much safer as they
use generic methods instead of janky casting of objects.

* Remove generic CheckPreconditions method
2017-03-18 09:55:53 -03:00
Finite Reality
3ddb01a5a2 Fix order of iteration in ExecuteAsync (#534) 2017-03-18 08:55:56 -03:00
RogueException
11ba30c6fa Cleaned up DepMap type checks 2017-03-18 08:48:18 -03:00
RogueException
334ceacdbf Merge pull request #546 from khionu/dev
Fix detection of IDependencyMap impl
2017-03-18 08:42:57 -03:00
RogueException
683541ba24 Added RequireOwner support for User tokens 2017-03-18 08:38:24 -03:00
Flamanis
94ea80b45e Modified User#Discrim check to properly check guild 2017-03-08 00:51:10 -06:00
Flamanis
dc2230de86 guildUsers instantiated to empty collection, removed added nullchecks
A null conditional operator was required at line 70 to avoid a nullref.
2017-03-08 00:48:18 -06:00
Flamanis
c643ceaa47 Add space after if and before ( 2017-03-07 18:41:31 -06:00
Flamanis
b5f80a7a6c Should fix Linq ArgumentNullException 2017-03-07 18:29:53 -06:00
Khionu Sybiern
ba406bb646 Split typechecks into their own conditions 2017-03-02 01:39:45 -05:00
Khionu Sybiern
4274900d43 Implimented discussed changes 2017-03-01 14:19:28 -05:00
Khionu Sybiern
c350debdba Better implimentation of detection 2017-03-01 08:08:07 -05:00
Khionu Sybiern
df6579260e Fix detection of IDependencyMap impl
Not pretty, but it works.
2017-03-01 07:13:38 -05:00
Christopher F
3c9704c822 Merge pull request #520 from james7132/property-injection
Conflicts:
	docs/guides/samples/dependency_module.cs
	src/Discord.Net.Commands/Utilities/ReflectionUtils.cs
2017-02-23 15:51:24 -05:00
Christopher F
7476c4ca38 Cleanup property injection 2017-02-23 15:47:46 -05:00
Christopher F
6fd834f326 Merge pull request #417 from RogueException/feature/better-di
Enhance Dependency Injection
2017-02-21 16:56:25 -05:00
RogueException
1070feafa8 Merge pull request #509 from aequasi/patch-2
Typo
2017-02-20 18:32:02 -04:00
RogueException
966be796b2 Merge pull request #504 from Joe4evr/TypeReader_NRE_fix
Fix ParameterInfo.Type sometimes being null
2017-02-20 18:14:21 -04:00
Christopher F
f3aa546407 Throw an InvalidOp if a user tries to set the DefaultRunMode to Default
never overestimate the end user
2017-02-12 19:06:36 -05:00
james7132
73f00eb0d7 Ensure injected properties have public setters 2017-02-11 20:12:12 +00:00
Christopher F
6352cbebef Add TryAdd to DependencyMaps 2017-02-11 13:53:14 -05:00
Christopher F
40ede62e4d Remove Auto-Injection
this should be handled by #520
2017-02-11 13:38:26 -05:00
james7132
145ae1518b Fix properties not being set properly on injection 2017-02-11 05:48:45 +00:00
james7132
f1df412341 Change whitelist injection into blacklist injection 2017-02-10 22:02:18 +00:00
james7132
f0b4c24e82 Add InjectAttribute for annotating injectable properties 2017-02-10 21:52:33 +00:00
james7132
a551064eaf Add IDependencyMap injection for public properties 2017-02-10 15:44:24 +00:00
Aaron Scherer
858af5e8bb Typo 2017-02-04 05:48:48 -08:00
Joe4evr
f80687ef0e Fix ParameterInfo.Type sometimes being null 2017-02-01 04:06:24 +01:00
Joe4evr
ea298875af Actually mark the methods virtual #derp 2017-01-30 03:17:57 +01:00
Joe4evr
c2599977a5 Add BeforeExecute/AfterExecute methods to ModuleBase 2017-01-30 03:14:12 +01:00
RogueException
55e9c7da5c Merge pull request #482 from FiniteReality/issue/462
Ensure aliases are built in the correct order
2017-01-26 10:57:46 -04:00
RogueException
deb755dd3d Merge pull request #488 from FiniteReality/issue/487
Replace ConcurrentBag<T> with HashSet<T>
2017-01-26 10:52:12 -04:00
RogueException
34139c9b59 Converted Discord.Net to a metapackage 2017-01-26 10:43:32 -04:00
RogueException
eb2a946dd6 Updated to 1.0.0-rc3 tooling 2017-01-25 22:27:24 -04:00
RogueException
3bc2520095 Abandon VersionSuffix 2017-01-25 20:39:04 -04:00
RogueException
24663605f6 Fixed CI detecting all packages as dev 2017-01-25 20:14:19 -04:00
RogueException
b0db37cad6 Versions are hard 2017-01-25 18:00:00 -04:00
RogueException
3046b62c94 Cleaned up csproj/sln/scripts 2017-01-25 12:41:38 -04:00
RogueException
7c5fe79333 Updated build script 2017-01-24 15:40:41 -04:00