markus / Rhino.Licensing / ILicensingService.cs @ 42d49521
이력 | 보기 | 이력해설 | 다운로드 (854 Bytes)
1 |
using System; |
---|---|
2 |
using System.ServiceModel; |
3 |
|
4 |
namespace Rhino.Licensing |
5 |
{ |
6 |
/// <summary> |
7 |
/// Service contract of the licensing server. |
8 |
/// </summary> |
9 |
[ServiceContract(SessionMode = SessionMode.NotAllowed)] |
10 |
public interface ILicensingService |
11 |
{ |
12 |
/// <summary> |
13 |
/// Issues a float license for the user. |
14 |
/// </summary> |
15 |
/// <param name="machine">machine name</param> |
16 |
/// <param name="user">user name</param> |
17 |
/// <param name="id">Id of the license holder</param> |
18 |
/// <returns></returns> |
19 |
[OperationContract] |
20 |
string LeaseLicense(string machine, string user, Guid id); |
21 |
|
22 |
/// <summary> |
23 |
/// |
24 |
/// </summary> |
25 |
/// <param name="key"></param> |
26 |
/// <returns></returns> |
27 |
[OperationContract] |
28 |
string GetLicense(string key); |
29 |
|
30 |
} |
31 |
} |