Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66789

Best practice for multiple ExternalEvent modules

$
0
0

Dear Everyone,

I'm developing a plugin, where I have several IExternalEvent modules, many of which are communicating with Revit from outside (via Windows Form and WPF). My goal is to find the cleanest solution for this problem.

For now I only see the following two solutions, but I don't really like any of them:

1. Using separate files for all of the sub modules -> Resulting many "Request" and "RequestHandler" and other helper files

2. Using a single "RequestHandler", which contains all of my possible requests from any of the modules -> Resulting to be most of my API code in the same file, which is getting crowded.

 

Is there a better practice for this?

 

 


Viewing all articles
Browse latest Browse all 66789

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>