c# - How can I limit access to an assembly? -


how can limit loading , execution of libraries based on defined precondition? example, if distribute client application uses external library, how can ensure external library used application , not used client other purposes?

is code access security answer? if so, there example of how apply in situation described above?

thanks!

update: cannot use services protect logic. must supply code in assembly, , want protect being used build other products.

the best way limit access move logic assembly service layer. if concerned protecting logic in assembly best way.

remember, mechanism can defeated enough effort if client has assembly in hands , motivated use it. why service layer perfect solution gives application access logic without allowing client obtain implementation itself.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -