Class UrlRewriteRuleAttribute
Add a Url rewrite rule for hologram. eg : [assembly: UrlRewriteRule("/myoldRoute","/MyModule/MyAction")] or using wildchar [assembly: UrlRewriteRule("/myoldRoute/","/")]
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
public class UrlRewriteRuleAttribute : Attribute
- Inheritance
-
objectAttributeUrlRewriteRuleAttribute
Remarks
The 'To' parameter will be prefixed with the service name. In the first sample above the final target url will be "/MyService/MyModule/MyAction"
Constructors
UrlRewriteRuleAttribute(string, string)
public UrlRewriteRuleAttribute(string From, string To)
Parameters
Properties
From
public string From { get; set; }
Property Value
To
public string To { get; set; }