Topic: .NET

Programming Microsoft's Clouds: Windows Azure and Office 365 (1118076567) cover image

Programming Microsoft's Clouds: Windows Azure and Office 365

Thomas Rizzo, Michiel van Otegem, Zoiner Tejada, Razi bin Rais, Darrin Bishop, George Durzi, David Mann
ISBN: 978-1-118-07656-9
Paperback
600 pages
May 2012
Other Available Formats: E-book
If you are an instructor, you may request an evaluation copy for this title.
Paperback Version: US $44.99 Add to Cart

About This Title  |  Download Code  |  Errata

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
341 Error in Code
p. 341, Listing 9-7 is currently:

void OnWifSvcConfigurationCreated(object sender, ServiceConfigurationCreatedEventArgs e)
{
    var certificate = e.ServiceConfiguration.ServiceCertificate);
    var transforms = new List(
         new CookieTransform[] {
             new DeflateCookieTransform(),
             new RsaEncryptionCookieTransform(certificate),
             new RsaSignatureCookTransform(certificate) });
    var handler = new SessionSecurityTokenHandler(tranforms);
    e.ServiceConfiguration.SecurityTokenHandlers.AddOrReplace(handler);
And it should read:

void OnWifSvcConfigurationCreated(object sender, ServiceConfigurationCreatedEventArgs e)
{
    var certificate = e.ServiceConfiguration.ServiceCertificate;
    var transforms = new List(
         new CookieTransform[] {
             new DeflateCookieTransform(),
             new RsaEncryptionCookieTransform(certificate),
             new RsaSignatureCookieTransform(certificate) });
    var handler = new SessionSecurityTokenHandler(new ReadOnlyCollection(transforms));
    e.ServiceConfiguration.SecurityTokenHandlers.AddOrReplace(handler);
}
06/20/2012