📄 program.cs
字号:
/*
* Easy Messaging Gateway (SMS/MMS/Mail) - Easy to use SMS/MMS Messaging Gateway
* to develop Content Delivery Platforms by GSM Operators,Content Providers
* and even non-telecom guys.
*
* Uses file system for data flow. Protocol level is based on Easy SMPP and Easy MM7 projects.
*
* Written for .NET 2.0 in C#
* Copyright (C) 2006 Balan Andrei, http://balan.name
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.gnu.org/licenses/lgpl.html
*
* For further information visit:
* http://easymessaging.sf.net/
*
*
* "Support Open Source software. What about a donation today?"
*
*
* File Name: Program.cs
*
* File Authors:
* Balan Name, http://balan.name
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.ServiceProcess;
using System.Text;
namespace EasyMessaging.SmsGateway
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
{
Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory);
#if !DEBUG
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[] { new Service() };
ServiceBase.Run(ServicesToRun);
#else
Service service = new Service();
service.Start();
Console.WriteLine("Press any key");
Console.ReadKey();
service.Stop();
#endif
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -