Esempio n. 1
0
 /// <summary>
 /// Adds a new URL pattern.
 /// </summary>
 /// <remarks>
 /// When the App receives a request with a URL that matches the given pattern, the specified view will be called.
 /// Please note that there are overloads of this method with more convenient signatures, like <see cref="AddView(string, View)"/>.
 /// </remarks>
 /// <param name="pattern">The URL pattern to add.</param>
 /// <seealso cref="RailPhase.UrlPattern"/>
 /// <seealso cref="RailPhase.View"/>
 public void AddUrlPattern(UrlPattern pattern) { urlPatterns.Add(pattern); }
Esempio n. 2
0
 /// <summary>
 /// Adds a new URL pattern.
 /// </summary>
 /// <remarks>
 /// When the App receives a request with a URL that matches the given pattern, the specified view will be called.
 /// Please note that there are overloads of this method with more convenient signatures, like <see cref="AddUrlPattern(string, View)"/>.
 /// </remarks>
 /// <param name="pattern">The URL pattern to add.</param>
 /// <seealso cref="RailPhase.UrlPattern"/>
 /// <seealso cref="RailPhase.View"/>
 public void AddUrlPattern(UrlPattern pattern)
 {
     urlPatterns.Add(pattern);
 }