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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -