Page 1 of 1

How do you initiate the Token.Store instance?

Posted: Fri May 22, 2009 8:46 am
by AbleMods
I've got some server-side only code that runs in a scheduled fashion - there is no browser activity necessary to fire the routines I've written.

Prior to 7.0.2, my classes always found Token.Instance.Store fully loaded and populated. Store name, store settings etc were all loaded and available.

Now that I've upgraded to 7.0.2, this is no longer the case. The entire Token instance is empty ('nothing'). Store is running fine otherwise.

Is there a way to manually populate the entire Token instance? I tried

Code: Select all

Token.Instance.Store = StoreDataSource.Load(1)
which loads the store, but store settings doesn't populate.

Re: How do you initiate the Token.Store instance?

Posted: Fri May 22, 2009 9:12 am
by nickc

Re: How do you initiate the Token.Store instance?

Posted: Fri May 22, 2009 10:44 am
by AbleMods
Nick,

Thanks for the pointer in the right direction.

Wonder why Able changed it though - it didn't used to require an HTTP context.