36 lines
1006 B
C#
36 lines
1006 B
C#
|
// /**
|
|||
|
// * File: HttpDHCP.cs
|
|||
|
// * Author: haraldwolff
|
|||
|
// *
|
|||
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
|||
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
|||
|
// *
|
|||
|
// *
|
|||
|
// **/
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using ln.http;
|
|||
|
using ln.http.resources;
|
|||
|
using ln.dhcp;
|
|||
|
namespace skyspot.http
|
|||
|
{
|
|||
|
public class DHCP : BaseResource
|
|||
|
{
|
|||
|
public DHCPServer DHCPServer { get; set; }
|
|||
|
|
|||
|
public DHCP(Resource container,DHCPServer dhcpServer)
|
|||
|
:base(container,"DHCP")
|
|||
|
{
|
|||
|
DHCPServer = dhcpServer;
|
|||
|
|
|||
|
Resource collections = new BaseResource(this, "collections");
|
|||
|
|
|||
|
new CollectionResource<DHCPLease>(collections, dhcpServer.leasesCollection);
|
|||
|
new CollectionResource<IPPool>(collections, dhcpServer.ippoolsCollection);
|
|||
|
new CollectionResource<DHCPServerInterface>(collections, dhcpServer.serverInterfacesCollection);
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|