54 lines
1.5 KiB
C#
54 lines
1.5 KiB
C#
using Sarand.Core.Base;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Sarand.OperationsMgr.Service.App
|
|
{
|
|
//=======================================================================
|
|
public class OpnServiceConfig
|
|
{
|
|
//-------------------------------------------------------------------
|
|
public class ProcessSchedule
|
|
{
|
|
public int TimerMins { get; set; } = 0;
|
|
public String TimeFrom { get; set; } = "";
|
|
public String TimeTo { get; set; } = "";
|
|
}
|
|
public enum WebServiceType { Internal = 10, External = 20 };
|
|
public class WebService
|
|
{
|
|
public WebService (WebServiceType type)
|
|
{
|
|
this.ServiceType = type;
|
|
}
|
|
public WebServiceType ServiceType { get; }
|
|
public bool Enabled { get; set; }
|
|
public int HttpListenerPort { get; set; } = 0;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
private static readonly String logTab = " ";
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Load configuration.
|
|
public void LoadFromProperties (PropertySet properties)
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
private void ConfigureWebService (WebService webService, PropertySet properties)
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|