vote up 0 vote down
star

I installed Windows Azure Tools for Microsoft Visual Studio (November 2009). While playing around with the labs, they reference Microsoft.ServiceHosting.ServiceRuntime, which is supposed to contain the new logging facilities in the RoleManager class. In spite of what the latest labs call for, the Nov tools have refactored namespaces. I opened Microsoft.WindowsAzure.ServiceRuntime with Reflector and it has classes that used to be in Microsoft.ServiceHosting.ServiceRuntime such as Role, RoleEntryPoint but no RoleManager. Where is it?

flag

3 Answers

vote up 0 vote down
check

RoleManager is now called RoleEnvironment and is found in Microsoft.WindowsAzure.ServiceRuntime

link|flag
vote up 0 vote down

That doesn't answer the question, which was where the WriteToLog method of RoleManager is. There does not appear to be a RoleEnvironment.WriteToLog method.

link|flag
vote up 0 vote down

According to this post Trace.WriteLine is the replacement for WriteToLog

link|flag

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.