aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Transport/Discovery/IDiscoveryComponent.cs
blob: bb64d42482b624255a9fc70c52f0704021e53c37 (plain)
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Transport.Discovery
{
    /// <summary>
    /// Represents a discovery component.
    /// </summary>
    public interface IDiscoveryComponent
    {
        /// <summary>
        /// Gets or sets the interval in which the discovery process will be triggered.
        /// </summary>
        TimeSpan Interval { get; set; }

        /// <summary>
        /// Gets a value indicating whether this component has been started.
        /// </summary>
        bool IsStarted { get; }

        /// <summary>
        /// Starts the discovery component.
        /// </summary>
        void Start();

        /// <summary>
        /// Stops the discovery component.
        /// </summary>
        void Stop();
    }
}