Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:hibernating-rhinos/rhino-licensing
- Loading branch information
Showing
14 changed files
with
788 additions
and
463 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
using System; | ||
using System.ServiceModel; | ||
namespace Rhino.Licensing | ||
{ | ||
[ServiceContract(SessionMode = SessionMode.NotAllowed)] | ||
public interface ILicensingService | ||
{ | ||
[OperationContract] | ||
string LeaseLicense(string machine, string user, Guid id); | ||
} | ||
using System; | ||
using System.ServiceModel; | ||
|
||
namespace Rhino.Licensing | ||
{ | ||
/// <summary> | ||
/// Service contract of the licensing server. | ||
/// </summary> | ||
[ServiceContract(SessionMode = SessionMode.NotAllowed)] | ||
public interface ILicensingService | ||
{ | ||
/// <summary> | ||
/// Issues a float license for the user. | ||
/// </summary> | ||
/// <param name="machine">machine name</param> | ||
/// <param name="user">user name</param> | ||
/// <param name="id">Id of the license holder</param> | ||
/// <returns></returns> | ||
[OperationContract] | ||
string LeaseLicense(string machine, string user, Guid id); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
using System.ServiceModel; | ||
|
||
namespace Rhino.Licensing | ||
{ | ||
[ServiceContract] | ||
public interface ISubscriptionLicensingService | ||
{ | ||
[OperationContract] | ||
string LeaseLicense(string previousLicense); | ||
} | ||
using System.ServiceModel; | ||
|
||
namespace Rhino.Licensing | ||
{ | ||
/// <summary> | ||
/// Service contract of subscription server. | ||
/// </summary> | ||
[ServiceContract] | ||
public interface ISubscriptionLicensingService | ||
{ | ||
/// <summary> | ||
/// Issues a leased license | ||
/// </summary> | ||
/// <param name="previousLicense"></param> | ||
/// <returns></returns> | ||
[OperationContract] | ||
string LeaseLicense(string previousLicense); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
namespace Rhino.Licensing | ||
{ | ||
/// <summary> | ||
/// InvalidationType | ||
/// </summary> | ||
public enum InvalidationType | ||
{ | ||
/// <summary> | ||
/// Can not create a new license | ||
/// </summary> | ||
CannotGetNewLicense, | ||
|
||
/// <summary> | ||
/// License is expired | ||
/// </summary> | ||
TimeExpired | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,38 @@ | ||
namespace Rhino.Licensing | ||
{ | ||
/// <summary> | ||
/// License Type | ||
/// </summary> | ||
public enum LicenseType | ||
{ | ||
/// <summary> | ||
/// No type specified | ||
/// </summary> | ||
None, | ||
|
||
/// <summary> | ||
/// For trial use | ||
/// </summary> | ||
Trial, | ||
|
||
/// <summary> | ||
/// Standard license | ||
/// </summary> | ||
Standard, | ||
|
||
/// <summary> | ||
/// For personal use | ||
/// </summary> | ||
Personal, | ||
|
||
/// <summary> | ||
/// Floating license | ||
/// </summary> | ||
Floating, | ||
|
||
/// <summary> | ||
/// Subscription based license | ||
/// </summary> | ||
Subscription | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.