Revision: 216
http://svn.sourceforge.net/nmailserver/?rev=216&view=rev
Author: tmyroadctfig
Date: 2007-06-10 07:33:07 -0700 (Sun, 10 Jun 2007)
Log Message:
-----------
Moved ServiceStartInfo.
Added Paths:
-----------
NMail/trunk/NMail/DataTypes/Service/ServiceStartInfo.cs
Added: NMail/trunk/NMail/DataTypes/Service/ServiceStartInfo.cs
===================================================================
--- NMail/trunk/NMail/DataTypes/Service/ServiceStartInfo.cs (rev 0)
+++ NMail/trunk/NMail/DataTypes/Service/ServiceStartInfo.cs 2007-06-10 14:33:07 UTC (rev 216)
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2004-2006 Luke Quinane and Daniel Frampton
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using System.Diagnostics;
+
+namespace NMail.DataTypes.Service {
+ /// <summary>
+ /// Specifies the details of a service to start.
+ /// </summary>
+ public class ServiceStartInfo : MarshalByRefObject {
+ /// <summary>
+ /// Creates a new service start infomation object.
+ /// </summary>
+ /// <param name="service">The service to start.</param>
+ /// <param name="automatic">True if the service should be started when the system starts.</param>
+ public ServiceStartInfo(IService service, bool automatic) {
+ this.service = service;
+ this.automaticStart = automatic;
+ }
+
+ private IService service;
+
+ /// <summary>
+ /// The service to start.
+ /// </summary>
+ public IService Service {
+ get {
+ return this.service;
+ }
+ set {
+ this.service = value;
+ }
+ }
+
+ private bool automaticStart;
+
+ /// <summary>
+ /// Should the service be started automatically on system start?
+ /// </summary>
+ public bool AutomaticStart {
+ get {
+ return this.automaticStart;
+ }
+ set {
+ this.automaticStart = value;
+ }
+ }
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|