JOY, Visual Studio 2008 JavaScript Inteliscence Support

5 בדצמבר 2007

Yet, another great feature in Visual Studio 2008. JavaScript Inteliscence This is wonderful, i can finally write JavaScript prototypes and see them in the Inteliscence. It was so hard to write Object Oriented in VS2005 because of no Inteliscence support.   To see this in action, first, I've created a new JS file called JScript.js, within i created a new class called Test(). Then i created 2 new prototypes function under Test() called DoSomthing1() and DoSomthing2().   Then i created a new instance of Test(), and here you can see my methods under the Test class.     Even more, when i created a new ASPX file, and...
תגיות: ,
אין תגובות

LINQ – Handling Legacy Code

4 בדצמבר 2007

LINQ is for queries, no doubt about it. Yet - we can do some interesting thins with LINQ, and not just queries. For example, we all deal sometimes with legacy code inherited from some old project - so here some interesting ways to handle this code with few simple lambda expressions.   For this example, I will use this Employee class: public class Employee { public Employee(string firstName) { this._firstName = firstName; ...
תגיות: , , ,
2 תגובות

WCF – IIS Integrated Security

Usually when we developing a WCF service in Intranet environment, we need to enable users to authenticate on IIS with there login credentials - Integrated Security.   Assuming we using basicHttpBinding and we host the service library on IIS web site, This can be accomplished by the following settings: <bindings> <basicHttpBinding> <binding name="basicHttpBindingConfig"> <security mode="TransportCredentialOnly"> <transport...
תגיות: , ,
אין תגובות

Book Review – Pro LINQ: Language Integrated Query in C# 2008

Recently I've started to read a book about LINQ. I must say, LINQ language some how manage to amaze me each time i starting a new topic, it already changed the way I code. I consider LINQ to be a "Must Know" language for every developer in every day coding.   This book is very light, understandable, and contains allot of good code examples with allot of explanations in it, step by step. Later in the book, the language starts to be more complex and less understandable, because of some complex code samples. Nonetheless, if you determine to understand the code, and read it couple...
תגיות: ,
אין תגובות

WCF – Binding and Security

3 בדצמבר 2007

How do we know which binding to use and when? How do we know which security schema goes with our selected binding configuration?   There's allot of considerations with the binding configuration: Is there IIS involved. Are we going to use IIS Integrated Security. Are we going to use net.tcp binding?   There's also security issues we need to address: How we going to secure our services communication. Do we use the...
תגיות: , , ,
אין תגובות