Friday, May 24, 2013

Prism

Prism provides guidance to develop applications with
more easily design
                                 and build rich, flexible,
                                                                        and easy-to-maintain

Supports Windows Presentation Foundation (WPF) desktop applications, Silverlight Rich Internet Applications (RIAs), and Windows Phone 7 applications.

Using design patterns that embody important architectural design principles, such as separation of concerns and loose coupling.

Prism helps you to design and build applications using loosely coupled components that can evolve independently but that can be easily and seamlessly integrated into the overall application.

Please click here to download the presentation attached and read to know more about Prism in details

Tuesday, February 12, 2013

WCF REST with Request Header

This article demonstrates how to make a call from client to a REST based service with Header in Request

  var binding = new WebHttpBinding();
            binding.Security.Mode = WebHttpSecurityMode.Transport;
            var cf = new WebChannelFactory<SERVICE_TYPE>(binding, new Uri(URL));
            {
                Console.WriteLine("{0}:Creating Channel", System.DateTime.Now.ToString("hh:mm:ss"));
                var proxy = cf.CreateChannel();
  
  using (new OperationContextScope((IClientChannel)proxy))
                {
                    WebOperationContext.Current.OutgoingRequest.Headers.Add("Sample", "SamValue");
                 
                    Console.WriteLine("{0}:Calling Method", System.DateTime.Now.ToString("hh:mm:ss"));
                    proxy.Method(Entity);
                    Console.WriteLine("{0}:Calling Completed in {1} Seconds", System.DateTime.Now.ToString("hh:mm:ss"), System.DateTime.Now.Subtract(le).TotalSeconds);
 }

                }
                cf.Close();
                   Console.ReadLine();

WCF REST

This article demonstrates how to make a call from client to a REST based service

With Https

  var binding = new WebHttpBinding();
            binding.Security.Mode = WebHttpSecurityMode.Transport;
            var cf = new WebChannelFactory<SERVICE_TYPE>(binding, new Uri(URL));
            {
                Console.WriteLine("{0}:Creating Channel", System.DateTime.Now.ToString("hh:mm:ss"));
                var proxy = cf.CreateChannel();
                    Console.WriteLine("{0}:Calling Method", System.DateTime.Now.ToString("hh:mm:ss"));
                    proxy.Method(Entity);
                    Console.WriteLine("{0}:Calling Completed in {1} Seconds", System.DateTime.Now.ToString("hh:mm:ss"), System.DateTime.Now.Subtract(le).TotalSeconds);
                    Console.ReadLine();
                }
                cf.Close();

Tuesday, January 29, 2013

Gmail like Dropdown

Flexbox which looks like a dropdown and accepts JSON object Click here to see demo and download

JSON

Very Easy to Serialize (C# Object to Json) and DeSerialize (Json to C# Object)
please check following links
  • http://blogs.microsoft.co.il/blogs/pini_dayan/archive/2009/03/12/convert-objects-to-json-in-c-using-javascriptserializer.aspx
  • http://www.codeproject.com/Articles/78928/Create-JSON-from-C-using-JSON-Library
  • http://www.codeproject.com/Articles/34730/JSON-and-C-using-Generics-and-Delegates
  • http://json.codeplex.com/
  • http://james.newtonking.com/pages/json-net.aspx

Jquery Html Editor

Very Easy to Implement and Very lightweight Click here to see demo and download