Dear Alex, Does DO4 has Dataservices and runtime services. i could not find any information in help manuals. i am testing DO4 but could not find any info for this feature like in DO 3.x. thanks Updated at 15.06.2010 10:14:52Thanks Alex for your reply. Can you please give me a brief idea how i can start writing my own runtime services in DO4, or else i will have to depend on windows scheduled task / windows services to do the peridoic calcualtions/ jobs for me. which i dont want. thanks This thread was imported from our support forum. The original discussion may contain more detailed answer. |
Runtime Services aren't supported in DO4, so you should implement this by your own. Regular Domain and Session-level services are supported. If you're using default IoC container integrated into Xtensive.Core (that's the case you have by default, although they're replaceable as well), all you should do is to apply this attribute to your service type: [Service(typeof(RequestedServiceType))], where RequestedServiceType must be its base type. Our integrated IoC framework relies on two attributes:
To get Session-level or Domain-level service, you must use the following code:
session.Services and domain.Services here is an IoC container providing these services. Also note that:
Some examples of intagrated Session-level services:
All you need is background thread (or threads) performing some tasks by schedule - I'm not sure if there is anything special to DO at all... Few hints:
|