microsoft / vs-servicehub

The service broker libraries used by Visual Studio to exchange intra- and inter-process services
MIT License
20 stars 8 forks source link

Add support for MEF exported brokered services with null versions #238

Closed AArnott closed 1 month ago

AArnott commented 1 month ago

Null versioned services are supposed to serve as a "catch-all" for any version the client might request. This worked for VSPackage-proffered services, but MEF exported services failed to be activated with arbitrary versions. This change corrects that.

This change also enables exported brokered services to "reject" requests by returning a null descriptor, which is important with catch-all versioning so that unknown versions can be rejected at runtime.