FAQ
FAQ
General Questions
What is a Protocol?
Protocols define reusable behaviors like lifecycle management, discovery, or security. They can be attached to any node in the middleware tree to extend its functionality.
Can I add custom routing strategies?
Yes, you can implement your own RoutingStrategy class to define custom routing logic. This allows you to control how events flow through your middleware tree.
How do I handle errors in the middleware?
The framework provides several ways to handle errors:
- Use try-catch blocks in event handlers
- Implement error events that bubble up the tree
- Add error middleware to specific branches of your tree
How do I debug my middleware?
The framework integrates with WPF to provide visual debugging:
- View the middleware tree structure
- Monitor event flow in real-time
- Inspect component state
- Set breakpoints in event handlers
Can I use existing WPF controls?
Yes, the framework is designed to work seamlessly with WPF controls. You can:
- Use WPF controls as visual representations of middleware nodes
- Bind WPF properties to middleware state
- Handle WPF events in your middleware logic
How do I test my middleware components?
The framework includes testing utilities:
- Mock event system for unit testing
- Visual testing through WPF integration
- Component isolation capabilities
- Event flow verification tools