[Nsd]Fixed ArgumentException and implemented IDisposable in INsdService
[platform/core/csapi/nsd.git] / Tizen.Network.Nsd / Tizen.Network.Nsd / INsdBrowser.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 namespace Tizen.Network.Nsd
18 {
19     /// <summary>
20     /// This interface is used for managing network service discovery using DNSSD/SSDP.
21     /// </summary>
22     public interface INsdBrowser
23     {
24         /// <summary>
25         /// Starts browsing the DNSSD/SSDP remote service.
26         /// </summary>
27         /// <remarks>
28         /// If there are any services available, ServiceFound event will be invoked.
29         /// Application will keep browsing for available/unavailable services until it calls StopDiscovery().
30         /// </remarks>
31         /// <since_tizen> 4 </since_tizen>
32         /// <privilege>http://tizen.org/privilege/internet</privilege>
33         /// <feature>http://tizen.org/feature/network.dnssd</feature>
34         /// <feature>http://tizen.org/feature/network.ssdp</feature>
35         /// <exception cref="InvalidOperationException">Thrown when any other error occured.</exception>
36         /// <exception cref="NotSupportedException">Thrown when DNSSD/SSDP is not supported.</exception>
37         /// <exception cref="UnauthorizedAccessException">Thrown when permission is denied.</exception>
38         void StartDiscovery();
39
40         /// <summary>
41         /// Stops browsing the DNSSD/SSDP remote service.
42         /// </summary>
43         /// <since_tizen> 4 </since_tizen>
44         /// <feature>http://tizen.org/feature/network.dnssd</feature>
45         /// <feature>http://tizen.org/feature/network.ssdp</feature>
46         /// <exception cref="InvalidOperationException">Thrown when any other error occured.</exception>
47         /// <exception cref="NotSupportedException">Thrown when DNSSD/SSDP is not supported.</exception>
48         void StopDiscovery();
49     }
50 }