Best type-safe session state pattern. Evar. (statestreetgang.net)

published 2 years ago, submitted by yesthatmcgurkyesthatmcgurk(3805) 2 years ago

We've seen two examples of type-safe session state handling today. This is my version and, I believe, the best. It uses generics, delegates and a session-singleton pattern to keep session object retrieval type safe and keeps cross-cutting down to a minimum.

8 comments | category: | Views: 46

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:

posted by yesthatmcgurkyesthatmcgurk(3805) 2 years ago

Its my baby. I love it. It gives me warmies deep inside were nobody else can touch.

posted by yesthatmcgurkyesthatmcgurk(3805) 2 years ago

DIE!

posted by powerrushpowerrush(3754) 2 years ago

BlogSpam sounds like a problem to be solved with a Singleton pattern. Discuss.

posted by willasrarikickswillasrarikicks(0) 2 years ago

I like.

posted by tdavisjrtdavisjr(325) 2 years ago

Is there a Kick-It fraternity that I'm not apart of? I posted on the same subject matter hours before this post and have not received any kicks. And this post has a direct link to my blog. I thought this was a community oriented website.

http://www.dotnetkicks.com/aspnet/Strongly_Typed_Session_Properties_in_ASP_NET

posted by powerrushpowerrush(3754) 2 years ago

@tdavisjr

Well, as I must admit the idea of [literally] kicking yesthatmcgurk because he's yesthatmcgurk makes me smile, I also believe he is a very intelligent individual and I feel his blog article contained more original and better content (e.g.: code) on the subject.

The direct link thing was sort of an inside joke since yesthatmcgurk called your article blogpspam. I was trying to show a teasing irony of how his article was similar to the one to which you linked.

posted by yesthatmcgurkyesthatmcgurk(3805) 2 years ago

He went back and added content, which is cool. I kick him.

information Login or create an account to comment on this story