Beginn des Servers
This commit is contained in:
parent
ec84451b4d
commit
60fcd47aa2
@ -4,6 +4,8 @@ using System.Linq;
|
||||
using System.ServiceProcess;
|
||||
using System.Text;
|
||||
|
||||
using MailServer.Services;
|
||||
|
||||
namespace MailServer
|
||||
{
|
||||
static class Program
|
||||
@ -22,7 +24,7 @@ namespace MailServer
|
||||
ServiceBase[] ServicesToRun;
|
||||
ServicesToRun = new ServiceBase[]
|
||||
{
|
||||
new IMAP_s()
|
||||
new IMAP_Service()
|
||||
};
|
||||
ServiceBase.Run(ServicesToRun);
|
||||
/*
|
||||
|
@ -1,8 +1,8 @@
|
||||
using MailServer.IMAP.Server;
|
||||
|
||||
namespace MailServer
|
||||
namespace MailServer.Services
|
||||
{
|
||||
partial class IMAP_s
|
||||
partial class IMAP_Service
|
||||
{
|
||||
/// <summary>
|
||||
/// Erforderliche Designervariable.
|
@ -9,13 +9,13 @@ using System.Text;
|
||||
|
||||
using MailServer.IMAP.Server;
|
||||
|
||||
namespace MailServer
|
||||
namespace MailServer.Services
|
||||
{
|
||||
public partial class IMAP_s : ServiceBase
|
||||
public partial class IMAP_Service : ServiceBase
|
||||
{
|
||||
private IMAP_Server server;
|
||||
|
||||
public IMAP_s()
|
||||
public IMAP_Service()
|
||||
{
|
||||
InitializeComponent();
|
||||
putEvents();
|
||||
@ -55,6 +55,7 @@ namespace MailServer
|
||||
|
||||
protected override void OnStop()
|
||||
{
|
||||
this.server.StopServer();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user