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

submitted by yesthatmcgurkyesthatmcgurk(4063) 4 years, 4 months 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: 96

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(4063) 4 years, 4 months ago 0

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

Reply

posted by yesthatmcgurkyesthatmcgurk(4063) 4 years, 4 months ago 0

DIE!

Reply

posted by powerrushpowerrush(3873) 4 years, 4 months ago 0

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

Reply

posted by willasrarikickswillasrarikicks(0) 4 years, 4 months ago 0

I like.

Reply

posted by tdavisjrtdavisjr(335) 4 years, 4 months ago 0

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

Reply

posted by powerrushpowerrush(3873) 4 years, 4 months ago 0

@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.

Reply

posted by yesthatmcgurkyesthatmcgurk(4063) 4 years, 4 months ago 0

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

Reply

information Login or create an account to comment on this story