Have been experimenting with hosting a WCF service in a Worker Role for days and I am so happy that I finally managed to get it working on the Cloud. I basically relied on the WindowsAzureRoleCommunication lab that came with the Windows Azure Training Kit for guidance.
It was silly (and greedy) of me to try to host a HTTP endpoint in a Worker Role. Now, that it is on TCP, everything works fine. Sigh! Still a lot to learn ^_^'
Anyway, I didn't like the idea of defining the service programmatically, so I proceeded to use the app.config file in the Worker Role but included these lines of code in the host instead:
RoleInstanceEndpoint tcpEndpoint = RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["tcpIn"];
_svcHost = new ServiceHost(typeof(ExpenseService),
new Uri(String.Format("net.tcp://{0}/ExpenseService",
tcpEndpoint.IPEndpoint)));
where tcpIn is defined in the csdef file.
Home » Windows Azure » My Worker Role is Alive!
Popular Post
-
No technical specification available (click images for a larger view)
-
The Message Stick Vehicle Art Car - Via Sacred Oz The message stick vehicle art car is a 1961 Vietnam war era army off road ambulance driven...
-
Cash For Clunkers Art Cars During the recent government "cash for clunkers" program this country witnessed an art car renaissance ...
-
Pontamafrey-Montpascal - Feissons-sur-Isère: 36 miles (58 km) GPS coordinates: N 45°26´7” E 006° 22´32” Open: june - november The height of...
-
A pair of new special edition models equipped with accessories for off-road enthusiasts, the Grand Cherokee Trailhawk and Wrangler Moab, hav...
-
Photo: Diane Edwardson, December 1, 2011. Last night's windstorm knocked down a huge eucalyptus tree on the 5 Freeway onto Riverside Dri...
-
At this year’s 16th annual Moscow International Auto Show, local carmaker AutoVAZ premiered one of its more impressive concepts to date, the...
-
Photo: Diane Edwardson, December 2, 2011. After a day of nervous watching of down power lines sparking spot fires on Lake View Ave. (monito...
-
Porsche came out today with its global sales numbers for the month of August and together confirmed the unveiling of a new model at the rapi...
-
The presentations at Ford's “Go Further” event in Amsterdam continued with the somewhat confusing Transit sub-brand and an array of pas...
No comments:
Post a Comment