botnetframework / dotbot

A .NET Core based bot framework.
MIT License
3 stars 2 forks source link

Allow adapter specific parts #16

Open patriksvensson opened 7 years ago

patriksvensson commented 7 years ago

It would be nice if you could register parts that's only used by certain adapters. The parts would then get a ReplyContext<TBroker> instead of the non-generic ReplyContext.

agc93 commented 7 years ago

This would be very handy!

It would also mean adapters could potentially expose extra public members on the TBroker for adapter-specific functionality, no?

patriksvensson commented 7 years ago

@agc93 Exactly.