-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIServiceExecutor.cs
More file actions
42 lines (38 loc) · 1.57 KB
/
IServiceExecutor.cs
File metadata and controls
42 lines (38 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// =================================================================================================================================
// Copyright (c) RapidField LLC. Licensed under the MIT License. See LICENSE.txt in the project root for license information.
// =================================================================================================================================
using RapidField.SolidInstruments.Core;
using System;
namespace RapidField.SolidInstruments.Service
{
/// <summary>
/// Prepares for and performs execution of a service.
/// </summary>
public interface IServiceExecutor : IInstrument
{
/// <summary>
/// Begins execution of the service and performs the service operations.
/// </summary>
/// <exception cref="ServiceExectuionException">
/// An exception was raised during execution of the service.
/// </exception>
public void Execute();
/// <summary>
/// Begins execution of the service and performs the service operations.
/// </summary>
/// <param name="commandLineArguments">
/// Command line arguments that are provided at runtime, if any.
/// </param>
/// <exception cref="ServiceExectuionException">
/// An exception was raised during execution of the service.
/// </exception>
public void Execute(String[] commandLineArguments);
/// <summary>
/// Gets the name of the service.
/// </summary>
public String ServiceName
{
get;
}
}
}