Click here to Skip to main content
15,887,371 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerCross Post! Pin
Henry Minute16-Jun-09 23:08
Henry Minute16-Jun-09 23:08 
Questionhow to open a word document? Pin
kvalli16-Jun-09 20:30
kvalli16-Jun-09 20:30 
QuestionSimilar to mail box Pin
anandkb16-Jun-09 19:47
anandkb16-Jun-09 19:47 
AnswerRe: Similar to mail box Pin
Colin Angus Mackay17-Jun-09 14:40
Colin Angus Mackay17-Jun-09 14:40 
QuestionDatagridview Keypress Pin
neha.lad16-Jun-09 19:24
neha.lad16-Jun-09 19:24 
AnswerRe: Datagridview Keypress Pin
Henry Minute16-Jun-09 23:34
Henry Minute16-Jun-09 23:34 
QuestionModal window and SDI window in Compact framework Pin
rajesh992216-Jun-09 1:04
rajesh992216-Jun-09 1:04 
QuestionAuto fire method when assembly is loaded Pin
nick_dodd16-Jun-09 0:40
nick_dodd16-Jun-09 0:40 
I am trying to create a licencing class library whereby an attribute is added to the AssemblyInfo.cs and when the assembly is loaded (not using Assembly.Load) validation is performed to see if the assembly has the attribute and then checks a licence key to ensure it can be run.

I thought the AppDomain.AssemblyLoad event might work, but after testing I am now assuming that only fires when you use Assembly.Load. I am a bit stuck as to whether this can be achieved and how.

I will eventually like to be able to do this validation at class level so that if someone tries instantiating an instance of the class, a licence is checked for access. One method is to use a proxy type mechanism like the Enterprise Library Injection Policy Application block, but ideally I would like it to fire is someone does the usual Foo f = new Foo(). The class level validation would ideally not have to be duplicated in every class (e.g. added to the constructors).

Any ideas on how to do this?
AnswerRe: Auto fire method when assembly is loaded Pin
Luc Pattyn16-Jun-09 1:45
sitebuilderLuc Pattyn16-Jun-09 1:45 
GeneralRe: Auto fire method when assembly is loaded Pin
nick_dodd16-Jun-09 2:35
nick_dodd16-Jun-09 2:35 
QuestionPassing an open TCP socket to another application Pin
supercat915-Jun-09 6:30
supercat915-Jun-09 6:30 
AnswerRe: Passing an open TCP socket to another application Pin
Mark Salsbery15-Jun-09 6:40
Mark Salsbery15-Jun-09 6:40 
GeneralRe: Passing an open TCP socket to another application Pin
supercat915-Jun-09 7:17
supercat915-Jun-09 7:17 
GeneralRe: Passing an open TCP socket to another application Pin
Mark Salsbery15-Jun-09 8:02
Mark Salsbery15-Jun-09 8:02 
GeneralAsync socket I/O Pin
supercat915-Jun-09 8:23
supercat915-Jun-09 8:23 
GeneralRe: Async socket I/O Pin
Mark Salsbery15-Jun-09 9:21
Mark Salsbery15-Jun-09 9:21 
GeneralRe: Async socket I/O Pin
supercat915-Jun-09 10:01
supercat915-Jun-09 10:01 
GeneralRe: Async socket I/O Pin
Mark Salsbery15-Jun-09 10:16
Mark Salsbery15-Jun-09 10:16 
GeneralRe: Async socket I/O Pin
supercat915-Jun-09 11:39
supercat915-Jun-09 11:39 
GeneralRe: Passing an open TCP socket to another application Pin
led mike15-Jun-09 9:17
led mike15-Jun-09 9:17 
GeneralRe: Passing an open TCP socket to another application Pin
Mark Salsbery15-Jun-09 9:24
Mark Salsbery15-Jun-09 9:24 
GeneralRe: Passing an open TCP socket to another application Pin
supercat915-Jun-09 9:49
supercat915-Jun-09 9:49 
GeneralRe: Passing an open TCP socket to another application Pin
led mike15-Jun-09 10:29
led mike15-Jun-09 10:29 
Questionhow to create crystal report in vb.net using sql server 2005. Pin
Neeta Sen12-Jun-09 21:58
Neeta Sen12-Jun-09 21:58 
Questionrearrange database Serial number after deleting a row Pin
Neeta Sen12-Jun-09 21:28
Neeta Sen12-Jun-09 21:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.