Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:29

    delete-merged-branch[bot] on GitHubSync-20200129-132859

    (compare)

  • 13:29

    GeertvanHorrik on develop

    GitHubSync update Merge pull request #151 from Wi… (compare)

  • 13:29
    GeertvanHorrik closed #151
  • 13:29
    GeertvanHorrik opened #151
  • 13:29

    GeertvanHorrik on GitHubSync-20200129-132859

    GitHubSync update (compare)

  • Jan 27 12:34
    lock[bot] locked #150
  • Jan 27 12:34
    lock[bot] commented #150
  • Jan 26 16:42
    lock[bot] locked #149
  • Jan 26 16:42
    lock[bot] commented #149
  • Jan 26 02:38
    lock[bot] locked #148
  • Jan 26 02:38
    lock[bot] commented #148
  • Jan 25 22:49
    lock[bot] locked #147
  • Jan 25 22:49
    lock[bot] commented #147
  • Jan 25 10:15
    lock[bot] locked #146
  • Jan 25 10:15
    lock[bot] commented #146
  • Jan 23 10:00

    delete-merged-branch[bot] on GitHubSync-20200123-100004

    (compare)

  • Jan 23 10:00

    GeertvanHorrik on develop

    GitHubSync update Merge pull request #150 from Wi… (compare)

  • Jan 23 10:00
    GeertvanHorrik closed #150
  • Jan 23 10:00
    GeertvanHorrik opened #150
  • Jan 23 10:00

    GeertvanHorrik on GitHubSync-20200123-100004

    GitHubSync update (compare)

Geert van Horrik
@GeertvanHorrik
If you have any questions / ideas about Orc.LicenseManager, feel free to post them here.
Colin
@cuken
@GeertvanHorrik Do you have a quick start guide available to integrate this?
Geert van Horrik
@GeertvanHorrik
Hi Colin, not really.
Colin
@cuken
I'm going through the code and trying to figure out where to even start )
:)*
Geert van Horrik
@GeertvanHorrik
I know, do you want server or client?
server is already there in the example, etc
so if you want to check for a license on your client, you need:
  1. at startup, call this code:
    if (!await _simpleLicenseService.Validate(License.ApplicationId, "My Product", "/MyProduct;component/Resources/Images/logo_0128.png", "In order to use this software, a license is required.")())
    {
     // License is not valid, exit software
    }
Colin
@cuken
Both, I have a simple implemntation of Rhino Licensing, but I didn't see any easy way to integrate hardware locking. So I stubmled on your project and looking at what it would take to get it to work
Geert van Horrik
@GeertvanHorrik
License.ApplicationId => the public key
to generate a license, just take a look at Portable.Licensing: https://github.com/dnauck/Portable.Licensing
There you see how to create a private and public key and generate a license
Colin
@cuken
Does the server example provided have the ability to generate a license?
Geert van Horrik
@GeertvanHorrik
yep
we built our own server based on that example
Colin
@cuken
okay I'll spend some time digging into it there's a lot going on :)
Geert van Horrik
@GeertvanHorrik
Yes, it's a bit of a complex solution, but since it's working for us we don't spend a lot of time improving the getting started guide (too much on our plate already)
If you have any questions, just ping me here
Colin
@cuken
Have you guys integrated payment solutions to trigger creation events?
Like a paypal purchase
Geert van Horrik
@GeertvanHorrik
No, because we don't need that (we create licenses manually). But it would be fairly easy (since there is a LicenseGeneratorService that you can call from your paypal callback url)
Colin
@cuken
Ok thanks for your time! I'll ping you if I have any questions
Colin
@cuken
@GeertvanHorrik Finally had some time to test it, when I try to launch the server in debug, it's throwing an exception on context.Database.CreateIfNotExists();
An exception of type 'System.Data.SqlClient.SqlException' occurred in EntityFramework.SqlServer.dll but was not handled in user code

Additional information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL
Geert van Horrik
@GeertvanHorrik
You need a sql database (can be sql express)
the connection string is in web.config if I remember correctly
Colin
@cuken
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\LicenseManager.mdf;Initial Catalog=LicenseManager;Integrated Security=True" providerName="System.Data.SqlClient" />
Geert van Horrik
@GeertvanHorrik
can you rename the mdf file in the appdata directory? Then it can create a new one
Colin
@cuken
just did, we'll see what happens