예제 #1
0
파일: App.cs 프로젝트: RailPhase/RailPhase
 /// <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); }
예제 #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);
 }