24 lines
639 B
C#
24 lines
639 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ln.http.resources
|
|
{
|
|
public class ResourceApplication
|
|
{
|
|
public Resource RootResource { get; set; }
|
|
public HttpRouter HttpRouter { get; set; }
|
|
|
|
public ResourceApplication(Resource rootResource,HttpRouter httpRouter)
|
|
{
|
|
RootResource = rootResource;
|
|
HttpRouter = httpRouter ?? new ResourceRouter(this);
|
|
}
|
|
public ResourceApplication(Resource rootResource)
|
|
:this(rootResource, null) { }
|
|
public ResourceApplication()
|
|
:this(new BaseResource(""))
|
|
{
|
|
}
|
|
}
|
|
}
|