Store IContent to the repository in a ServiceInitalizer
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
huxd@cn.ibm.com wrote:
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 |
Thanks Chris!
What you suggested sounds like a good idea, I will try it. |
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.