2
Answers

C# Design Patterns

Aditya Patil

Aditya Patil

10y
692
1
Hello Developers,

I developed many applications of Windows Phone and Windows Store without any serious thinking of Design Pattern at Student Level, but in Industry at first they said to learn the Design Patterns in C#, Why one should keep in mind about Design Pattern? How Design Patterns help us to build the Windows Phone and Windows Store application? Can you proove how Design Patterns are most important and why?

Waiting for interesting reply from your side.

Answers (2)
0
John Penn

John Penn

NA 3.1k 134.5k 16y
Are you using try/catch blocks to handle exceptions?  That's important in any application, but especially in a service because there's no UI to report errors with.  You should write Event Log entries for any caught exceptions, making sure to include any inner exceptions and their messages and stack traces.  This will be a big help in diagnosing any failures.

Also, try running the service under a different user account (double-click on service, go to "Log On" tab, change to "This Account" and specify an account that has the proper permissions to access whatever resources that the service needs to function).