| |
| |
| |
|
Comments:
<0> !find buttsroad <1> MuteThis, hi.. :) <1> MuteThis? <2> superware: hey, sorry i got busy last night and i'm publishing something this morning <2> i started the code, but its only 40%...
<1> MuteThis, cool, can't wait <1> MuteThis, is http://www.pastecode.com/11066 on the right track? <1> ItemRemovedCallback is missing dependencies.Remove(key); <2> superware: when you add the item you have to use the overload that allows you to specify the delegate as a parameter <1> MuteThis, are you asking? <2> no, i'm saying <2> there is an insert overload that accepts the delegate as a parameter, you need to use it <1> ok, http://www.pastecode.com/11072 <2> looks cool <1> where should I store an instance of Cache? I wany to use it in my project namespace just like I'm currently using HttpContext.Current.Cache... <1> wany=want <2> Put it in a namespace <2> Cache is sealed so you can't override it <2> or inherit it... <2> So, Foo.Cache <2> and after that you just use foo.cache <1> where do I ***ign new Cache(); ? <1> I didn't want to make it static because I wanted the indexer
<2> you could make it single instance then <1> let's say I want to refer to the instance as CacheX from anywhere in my appication, how can I do that? <2> you could place it in its own dll or just give it a namespace <2> namespace Foo { public cl*** Cache {} } then anything doing Foo.Cache has access <2> as long as they reference the ***embly with the code in it <1> I want to create a single instance of my Cache when the application starts (Application_OnStart), but where can I store it? <2> store it in the cl*** <2> Foo.Cache.GetInstance <1> as a static property? <2> right, with a private constructor <1> how can I then simply call CacheX.Insert(...) and not Foo.Cache.GetInstance.Insert(...) ? <2> Yep.. <2> You could make a local reference if you wanted... <1> hmmm <2> using Foo; Cache.Instance.Insert <2> HttpContext.Current.Cache.Insert <2> Nothing is perfect... <1> MuteThis, you there? <1> see http://www.pastecode.com/11080
Return to
#asp or Go to some related
logs:
#gamedev adjust wave volume XP control activex'J2SE #beginner #solaris #goal #red #photoshop starting apmd under openbsd #flash
|
|