Store IContent to the repository in a ServiceInitalizer
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
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