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
Post a Comment