PathTransformExtensions Methods
ClassMethods4 members
Extensions for adding path transforms.
WithTransformPathPrefix(YarpRoute, PathString) Section titled WithTransformPathPrefix(YarpRoute, PathString)extensionYarp Adds the transform which will prefix the request path with the given value.
public static class PathTransformExtensions{ public static YarpRoute WithTransformPathPrefix( this YarpRoute route, PathString prefix) { // ... }}Parameters
routeYarpprefixPathString Remarks
This overload is not available in polyglot AppHosts. Use the string-based overload instead.
WithTransformPathRemovePrefix(YarpRoute, PathString) Section titled WithTransformPathRemovePrefix(YarpRoute, PathString)extensionYarp Adds the transform which will remove the matching prefix from the request path.
public static class PathTransformExtensions{ public static YarpRoute WithTransformPathRemovePrefix( this YarpRoute route, PathString prefix) { // ... }}Parameters
routeYarpprefixPathString Remarks
This overload is not available in polyglot AppHosts. Use the string-based overload instead.
WithTransformPathRouteValues(YarpRoute, PathString) Section titled WithTransformPathRouteValues(YarpRoute, PathString)extensionYarp Adds the transform which will set the request path with the given value.
public static class PathTransformExtensions{ public static YarpRoute WithTransformPathRouteValues( this YarpRoute route, PathString pattern) { // ... }}Parameters
routeYarppatternPathString Remarks
This overload is not available in polyglot AppHosts. Use the string-based overload instead.
WithTransformPathSet(YarpRoute, PathString) Section titled WithTransformPathSet(YarpRoute, PathString)extensionYarp Adds the transform which sets the request path with the given value.
public static class PathTransformExtensions{ public static YarpRoute WithTransformPathSet( this YarpRoute route, PathString path) { // ... }}Parameters
routeYarppathPathString Remarks
This overload is not available in polyglot AppHosts. Use the string-based overload instead.