Now this is solved. You only have to decorate your component like this:

[AvalonComponent( "Name", Lifestyle.Singleton, Activation.Start ) ]
public class MyStartableComponent : IMyService
{

}

This component will be started as soon as its dependencies are satisfied.


Cheers,
hammett

----- Original Message ----- 
From: "hammett" <[EMAIL PROTECTED]>
To: "scikusa" <[EMAIL PROTECTED]>
Cc: "dev" <[EMAIL PROTECTED]>
Sent: Monday, August 30, 2004 5:50 PM
Subject: Re: Castle and automatic "master" Component or Kernel
instantiation?


Yes, I've modified the AvalonComponentAttribute adding an
Activation attribute. For now I'd like to keep the
microkernel totally independent of external configuration,
the usage of the container should be totally posible only
with code.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to