c# - Removing OData route from RouteCollection at runtime -


i have odata v3 c# website i'm adding service routes @ runtime. after startup, need ability add , remove these routes, based on external licensing scheme. can add routes, removing routes throws error.

so no problem adding service routes after start , having routes available requests:

globalconfiguration.configurationroutes.mapodataroute(     servicename,     servicename,     edmmodel ); 

but when try , remove individual routes, though code compile:

globalconfiguration.configuration.routes.remove(servicename); 

i exception thrown:

this operation not supported 'hostedhttproutecollection' 

i not want have clear() out routes , recreate them because means entire server down when need remove one.

any advice appreciated.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -