109c1d7be9d2b85bbf11fa8dd42807c0504a5ce8
[platform/core/csapi/tizenfx.git] / src / Tizen.Applications.Service / Tizen.Applications / ServiceApplication.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System.ComponentModel;
18 using Tizen.Applications.CoreBackend;
19
20 namespace Tizen.Applications
21 {
22     /// <summary>
23     /// Represents the service applications.
24     /// </summary>
25     /// <since_tizen> 3 </since_tizen>
26     public class ServiceApplication : CoreApplication
27     {
28         /// <summary>
29         /// Initializes the ServiceApplication class.
30         /// </summary>
31         /// <since_tizen> 3 </since_tizen>
32         public ServiceApplication() : base(new ServiceCoreBackend())
33         {
34         }
35
36         /// <summary>
37         /// Runs the service application's main loop.
38         /// </summary>
39         /// <param name="args">Arguments from commandline.</param>
40         /// <since_tizen> 3 </since_tizen>
41         public override void Run(string[] args)
42         {
43             base.Run(args);
44         }
45
46         /// <summary>
47         /// Exits the main loop of the application without restarting.
48         /// </summary>
49         /// <since_tizen> 10 </since_tizen>
50         [EditorBrowsable(EditorBrowsableState.Never)]
51         public void ExitWithoutRestarting()
52         {
53             Interop.Service.ExitWithoutRestarting();
54         }
55     }
56 }