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
-
Volvo Art Car Splattered to Perfection. I don't know maybe they missed a spot:)
-
A little while ago, we wrote about the risible and disturbing idea of a bicycle-sharing scheme for Aberdeen "City and Shire" as s...
-
Scott's blog drawthrough jr. Scott on concetships and bots. More images from DRIVE. Some of the nicest concept vehicle art I've ...
-
I think this dash must be Bakelite, the fore runner of plastic
-
Longtime Porsche tuning brand Gemballa is calling owners of the latest generation of the 911 Cabriolet S (codenamed 991) to take a look at ...
-
V8 / 5.461 cc / 525 PS / 515 ft/lb (700 Nm) @ 1.750 - 5.000 / twin turbo / 0 - 62 mph (100 km/h): 4,4 s / Vmax: 155 mph (250 km/h) AMG Per...
-
V12 / 5.980 cc / 555 PS / biturbo (click images for a larger view)
-
V12 / 3.929 cc / 365 PS / 300 ft/lb (407 Nm) @ 5.500 / 0 - 62 mph (100 km/h): 6,0 s / Vmax: 162 mph (261 km/h) (click images for a larger ...
No comments:
Post a Comment