corneto

Stories kicked by corneto

Simple Process Manager(gal-segal.com)

submitted by cornetocorneto(135) 3 months, 26 days ago

It is a common matter to have an operation in the server that requires few steps. Sometimes it is necessary that all the steps will complete successfully, and if one fails, a rollback should be made. SQL has the transaction term to support this kind of situation, and I’m about to show how it can be done in code. read more...

add a comment |category: |Views: 182

tags: another

My DAL Base Class(gal-segal.com)

submitted by cornetocorneto(135) 3 months, 27 days ago

A few days ago I wrote a small base class for the DAL layer. There are some repeating tasks involving the action of getting/setting data from a database: creating a command, establishing connection, reading the data and disposing everything in the end. In this base class I try to hide these actions and leave the programmer to deal with the important stuff. read more...

add a comment |category: |Views: 11

tags: another

Thread Safe High Performance Capped Queue(gal-segal.com)

submitted by cornetocorneto(135) 3 months, 27 days ago

Lately I was busy creating a new infrastructure for our logging system. I work on OpenBook - a website that gets a lot of traffic and involves with many different business processes. I started logging errors, info data and more with the excellent log4net to files, but has the logs got bigger and longer it became almost impossible to track it. We also use several IIS servers behind a load – balancer, and the result is a lot of logs on many different servers. read more...

1 comment |category: |Views: 187

tags: another

WCF Client Proxy Creation Process(gal-segal.com)

submitted by cornetocorneto(135) 3 months, 27 days ago

WCF enables us to consume a service in 2 ways: adding a service reference or by creating the proxy yourself. Both methods do the same thing – create a proxy class and and using it with the channel factory. Both cases are good, and its a matter of preference which one you use. I tend to use the second one – I prefer creating my proxy and add reference to the service dlls in the consuming app. read more...

add a comment |category: |Views: 8

tags: another

Why Inheritance Doesn’t Scale(gal-segal.com)

submitted by cornetocorneto(135) 4 months ago

OO Programmer tend to use inheritance as a way of code reuse, a best practice and for better maintainability. I am no exception. But there are times where inheritance can become your worst enemy, and instead of making your life easier, complicate stuff to the point you are lost. read more...

1 comment |category: |Views: 392

tags: another

Gal Segal's Blog | MVC Output Cache With Cache Profiles(gal-segal.com)

submitted by cornetocorneto(135) 8 months, 11 days ago

MVC Output cache with CacheProfie read more...

2 comments |category: |Views: 9

tags: another

Gal Segal's Blog | My DAL Base Class(gal-segal.com)

submitted by cornetocorneto(135) 9 months, 4 days ago

Simple base class, a small object mapper read more...

1 comment |category: |Views: 13

tags: another

Gal Segal's Blog | Useful Shortcuts – C# snippets for Visual Studio(gal-segal.com)

submitted by cornetocorneto(135) 1 year, 2 months ago

Here are 2 snippets I wrote that I find missing: one for regions creation and another for "Console.ReadLine()", which is peculiarly missing, since its' other brother "Console.WriteLine()" is already there.. read more...

add a comment |category: |Views: 3

tags: another

Gal Segal's Blog | MVC Nested Layout(gal-segal.com)

submitted by cornetocorneto(135) 1 year, 2 months ago

MVC3 introduced Razor’s Layout as the new heir of the master page. It is a little different, has section rendering instead of content place holders, but it is pretty similar and intuitive to work with. read more...

add a comment |category: |Views: 23

tags: another

Gal Segal's Blog | ASP.NET MVC Global Error Filter Attribute(gal-segal.com)

submitted by cornetocorneto(135) 1 year, 2 months ago

ASP.NET MVC3 introduced the global filters, allowing developers to register a filter across all controllers and action once – typically in “Application Start” event in the Global.asax. This feature can be used to perform a “catch all” place for all application errors. read more...

add a comment |category: |Views: 13

tags: another

Building a Dispatching Service(gal-segal.com)

submitted by cornetocorneto(135) 1 year, 2 months ago

Few days ago I had to solve a problem: we had a service that published some data, that was generated in our system to another third party website. For a while, one service could cope with the publishing process, which involved few HTTP requests to other sites, database procedures and error handling. But our capacity grew and one service was not enough. read more...

add a comment |category: |Views: 4

tags: another