It's all about the answers!

Ask a question

Store IContent to the repository in a ServiceInitalizer


Xiang Dong Hu (762) | asked Nov 01 '07, 7:28 a.m.
JAZZ DEVELOPER
In a service initializer, can I put a file into the repository?
Seems the IRepositoryInitializerContext doesn't offer such method, is
there any other way to store content?

2 answers



permanent link
Xiang Dong Hu (762) | answered Nov 01 '07, 7:27 p.m.
JAZZ DEVELOPER
Thanks Chris!

What you suggested sounds like a good idea, I will try it.

permanent link
Chris Daly (61651) | answered Nov 01 '07, 6:13 p.m.
JAZZ DEVELOPER
huxd@cn.ibm.com wrote:

In a service initializer, can I put a file into the repository?
Seems the IRepositoryInitializerContext doesn't offer such method, is
there any other way to store content?

I don't think there is a way to store Content in the service initializer.

One approach that could solve your problem is to write your service
method that accesses the content to detect when the content is being
accessed for the first time. It would then store the content and reset
whatever flag you used to indicate it was the first access attempt.


Chris

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.