Compartilhar via


RoleEnvironmentCertificateChange Class

 

Represents a change in the certificate configuration of a role.

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

Inheritance Hierarchy

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

Syntax

public class RoleEnvironmentCertificateChange : RoleEnvironmentChange, 
    IEquatable<RoleEnvironmentCertificateChange>
public ref class RoleEnvironmentCertificateChange : RoleEnvironmentChange, 
    IEquatable<RoleEnvironmentCertificateChange^>
type RoleEnvironmentCertificateChange = 
    class
        inherit RoleEnvironmentChange
        interface IEquatable<RoleEnvironmentCertificateChange>
    end
Public Class RoleEnvironmentCertificateChange
    Inherits RoleEnvironmentChange
    Implements IEquatable(Of RoleEnvironmentCertificateChange)

Properties

Name Description
System_CAPS_pubproperty Thumbprint

Gets the thumbprint of the changed certificate.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

Determines whether the specified object is equal to the current object.(Overrides Object.Equals(Object).)

System_CAPS_pubmethod Equals(RoleEnvironmentCertificateChange)

Determines whether the specified RoleEnvironmentCertificateChange object is equal to the current object.

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

Retrieves the hash code that corresponds to the current object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

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");
   }
}

Thread Safety

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

See Also

Microsoft.WindowsAzure.ServiceRuntime Namespace

Return to top