Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Assembly Loading Event

Assembly Loading Event

Scheduled Pinned Locked Moved C#
comquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pdohara
    wrote on last edited by
    #1

    I am working on a SDK. It is currently for our use, but one day it will be licensed to our customers. I need a way to ensure that the only code that uses the SDK is our code. Our code is signed (Strong Name). I was thinking that it would be great if there is an Init function or Load event I could use to check that the assembly loading mine was signed with our key. Does such a thing exist? Do you have an alternative idea? Pat O

    Tanks for your support
    Pat O
    Blog

    _ _ _
    /*\== /*\== /*\==
    <ooo> <ooo> <ooo>

    L 1 Reply Last reply
    0
    • P pdohara

      I am working on a SDK. It is currently for our use, but one day it will be licensed to our customers. I need a way to ensure that the only code that uses the SDK is our code. Our code is signed (Strong Name). I was thinking that it would be great if there is an Init function or Load event I could use to check that the assembly loading mine was signed with our key. Does such a thing exist? Do you have an alternative idea? Pat O

      Tanks for your support
      Pat O
      Blog

      _ _ _
      /*\== /*\== /*\==
      <ooo> <ooo> <ooo>

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      AppDomain.AssemblyResolve :)

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 beta 1 - out now!
      ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

      P 1 Reply Last reply
      0
      • L leppie

        AppDomain.AssemblyResolve :)

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 beta 1 - out now!
        ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))

        P Offline
        P Offline
        pdohara
        wrote on last edited by
        #3

        Thanks, I was aware of that. I was hoping for something that is called on code within the assembly. Again the goal is to enforce licensing, therefore relaying on someone to register my licencing code prior to using my SDK seems unlikely to work. I guess I could ask the more general question how do others handle licensing?

        Tanks for your support
        Pat O
        Blog

        _ _ _
        /*\== /*\== /*\==
        <ooo> <ooo> <ooo>

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups