コード例 #1
0
 /// <summary>
 /// Registers the resource.
 /// </summary>
 /// <param name="path">The path, including a starting '/'.</param>
 /// <param name="resource">The resource.</param>
 public void RegisterResource(string path, HttpResource resource)
 {
     m_Resources.Add(path, resource);
 }
コード例 #2
0
ファイル: HttpServer.cs プロジェクト: cyecp/moonsharp
		/// <summary>
		/// Registers the resource.
		/// </summary>
		/// <param name="path">The path, including a starting '/'.</param>
		/// <param name="resource">The resource.</param>
		public void RegisterResource(string path, HttpResource resource)
		{
			m_Resources.Add(path, resource);
		}