Windows Azure – Developers Guide – Part 2 – Web and Worker Role “Hello world”

8 בפברואר 2011

In my earlier post I talked about the Windows Azure features for the developer, In this post I will create a Simple “Hello world” Application using the Web and Worker Role. First thing first , If you haven’t downloaded the Windows Azure SDK and the Windows Azure Tools For Visual studio (We can develop on VS2008 but VS2010 is recommended) please download it Here. After installing we can create our first Windows Azure Solution : When Prompt choose the ASP.NET and Worker role: You can click on the roles to the...
2 תגובות

Windows Azure – Developers Guide – Part 1 – Introduction to Programming the Microsoft Cloud

After many question and talks to developers and friends, I discovered that the “Microsoft Cloud” or Windows Azure is still a big mystery to most of the developers. In this series of post I will try to simply introduce the Tools , Tasks , Architecture and Challenges that developers need to know before and while entering “Cloud Computing” with Microsoft Azure. The way I see it there are 4 main ways we can use the Windows Azure Platform : Compute Virtual Host Storage SQL...
תגיות: , , ,
2 תגובות

New Windows Azure Virtual Labs

3 בפברואר 2011

A very fast and useful way to practice and learn programing for Windows azure is those virtual labs : There are 5 excellent labs: Windows Azure Platform Virtual Labs MSDN Virtual Lab: Windows Azure Native Code New! MSDN Virtual Lab: Building Windows Azure Services with PHP MSDN Virtual Lab: Getting Started with Windows Azure Storage MSDN Virtual Lab: Building Windows Azure Services MSDN Virtual Lab: Using Windows Azure Tables Enjoy.
תגיות: , , , ,
4 תגובות

Running WPF Application from a Console on a Different Thread

27 בינואר 2011

I was asked if it is possible to run a WPF application from a Console Application project. The “Problem” is that WPF requires an STA (Single Thread Application) and if we try to open it from a ThreadStart() Method we will get an Exception. The Solution is simple: class Program   {     static void Main(string args)     {       Thread t = new Thread(Start_Wpf); ...
תגיות: , ,
15 תגובות

Introduction to Silverlight and WCF RIA – Tutorial Part 7 – Automatic Code Generation (From DomainService to DomainContext)

31 באוקטובר 2010

In my Previous Post I showed the “Rules and Conventions” of writing Queries on the DomainService (Server Side). In this post I will show what happens on the client side when we build our project. Lets start by adding a simple CLR based Entity on the server: public class SimpleCLREntity { public Guid UID { get; set; } public int Counter { get; set; } ...
תגובה אחת

Introduction to Silverlight and WCF RIA – Tutorial Part 6 – Domain Querying Rules and Conventions

When we write a DomainService on the server side we need to follow the following rules : 1.The Method must Be Public. 2.The method must return one of the following types:    A Model (one of our defined classes/Entities)    IEnumarable<Model>    IQueryable<Model> public IQueryable<Product> GetProducts() { return this.ObjectContext.Products.OrderBy(P => P.ProductID); } public Product GetProductByProductID(int ProductId) { return this.ObjectContext.Products.FirstOrDefault(P => ...
אין תגובות

Introduction to Silverlight and WCF RIA – Tutorial Part 5 – Custom Validation using Data-Annotations

2 באוקטובר 2010

In My Previous post I demonstrated the Master-Detail In Silverlight and the default validation that comes with the DataForm control. If we want to use the Data-Annotation feature we need to do the following: Find the Auto-Generated XXXXService.Metadata.cs File. In out case it is the ProductsService.Metadata.cs File.   For this demo lets create a Range Rule for the ProductPrice Property and decide it can contain a Range of 0 to 1500. So we use the Data Annotation Attribute like this: Now compile and run the application, If we write a bad...

Introduction to Silverlight and WCF RIA – Tutorial Part 4 – Simple Master-Detail Scenario

In my earlier Posts I demonstrated 3 steps in building a Silverlight application using WCF RIA Services: Step 1 – Setting The Silverlight Site. Step 2 – Displaying Data. Step 3 – Using The Domain Data Source. In this post I will “Upgrade” step 3 DataGrid to display a Master-Detail on the DataForm Control. To get started I added the relevant NameSpace: xmlns:DataFormControl="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit" After that it is very simple: We add the DataForm Control, and we define the edit template for the “Product”. Make sure to define a TwoWay Binding...

IE9 Beta is Fast!! – Faster then Visual Studio 2010

19 בספטמבר 2010

I have downloaded the IE9 Beta and encountered a problem. While Compiling and building a Silverlight Application on a virtual Server I sometimes get “Check your connection” error. The “Problem: is that the IE9 starts so fast the virtual server is not ready to send a response. The “Solution” to this problem is F5 :-). Who said that fast is good…..
2 תגובות