-
Notifications
You must be signed in to change notification settings - Fork 14
Tutorial 04 06 Add Main Dispatcher Class
Steve Ives edited this page May 19, 2020
·
16 revisions

Once you have created a dispatcher, you must register it in MethodDispatcher.dbl, which is in the Dispatchers folder in the TraditionalBridge project. This enables the dispatcher to be called. To register a dispatcher, add an mDispatchStubs.Add() call in the MethodDispatcher constructor. For example:
mDispatchStubs.Add("MyRoutine", new MyDispatcher())
When you first create a solution from the harmonycore template, the MethodDispatcher.dbl file has three examples of this:
mDispatchStubs.Add("AddTwoNumbers", new AddTwoNumbersDispatcher())
mDispatchStubs.Add("GetEnvironment", new GetEnvironmentDispatcher())
mDispatchStubs.Add("GetLogicalName", new GetLogicalNameDispatcher())
Next topic: Add Traditional Bridge Host
-
Tutorial 2: Building a Service from Scratch
- Creating a Basic Solution
- Enabling OData Support
- Configuring Self Hosting
- Entity Collection Endpoints
- API Documentation
- Single Entity Endpoints
- OData Query Support
- Alternate Key Endpoints
- Expanding Relations
- Postman Tests
- Supporting CRUD Operations
- Adding a Primary Key Factory
- Adding Create Endpoints
- Adding Upsert Endpoints
- Adding Patch Endpoints
- Adding Delete Endpoints
-
Harmony Core CLI Tool
-
OData Aware Tools
-
Advanced Topics
- CLI Tool Customization
- Adapters
- API Versioning
- Authentication
- Authorization
- Collection Counts
- Customization File
- Custom Field Types
- Custom File Specs
- Custom Properties
- Customizing Generated Code
- Deploying to Linux
- Dynamic Call Protocol
- Environment Variables
- Field Security
- File I/O
- Improving AppSettings Processing
- Logging
- Optimistic Concurrency
- Multi-Tenancy
- Publishing in IIS
- Repeatable Unit Tests
- Stored Procedure Routing
- Suppressing OData Metadata
- Traditional Bridge
- Unit Testing
- EF Core Optimization
- Updating a Harmony Core Solution
- Updating to 3.1.90
- Creating a new Release
-
Background Information