SALES: 1-800-867-1380

RoleEnvironmentCertificateChange Class

Updated: November 8, 2013

Represents a change in the certificate configuration of a role.

Namespace: Microsoft.WindowsAzure.ServiceRuntime
Assembly: Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)

public class RoleEnvironmentCertificateChange : RoleEnvironmentChange, IEquatable<RoleEnvironmentCertificateChange>

The following code example shows how to use the RoleEnvironmentCertificateChange object to write out the changes:


public override bool OnStart() 
{
   RoleEnvironment.Changed += RoleEnvironmentChanged;
   
   return base.OnStart();
}
 
private void RoleEnvironmentChanged(object sender, 
   RoleEnvironmentChangedEventArgs e)
{
   // Get the list of configuration changes
   var settingChanges = 
      e.Changes.OfType<RoleEnvironmentCertificateChange>();
      
   foreach (var settingChange in settingChanges) 
   {
      var message = "Setting: " + settingChange.Thumbprint;
      Trace.WriteLine(message, "Information");
   }
}


System.Object
   Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironmentChange
    Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironmentCertificateChange

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft