ActorFrameworkEventSource.ReplicaChangeRoleToPrimary Method

Namespace: Microsoft.ServiceFabric.Actors.Diagnostics
Assembly: Microsoft.ServiceFabric.Actors (in Microsoft.ServiceFabric.Actors.dll)

Usage

'Usage
Dim instance As ActorFrameworkEventSource
Dim replicaId As Long
Dim partitionId As Guid
Dim serviceName As String
Dim applicationName As String
Dim serviceTypeName As String
Dim applicationTypeName As String

instance.ReplicaChangeRoleToPrimary(replicaId, partitionId, serviceName, applicationName, serviceTypeName, applicationTypeName)

Syntax

'Declaration
<EventAttribute(1, Level:=EventLevel.Informational, Keywords:=EventKeywords.None)> _
Public Sub ReplicaChangeRoleToPrimary ( _
    replicaId As Long, _
    partitionId As Guid, _
    serviceName As String, _
    applicationName As String, _
    serviceTypeName As String, _
    applicationTypeName As String _
)
[EventAttribute(1, Level=EventLevel.Informational, Keywords=EventKeywords.None)] 
public void ReplicaChangeRoleToPrimary (
    long replicaId,
    Guid partitionId,
    string serviceName,
    string applicationName,
    string serviceTypeName,
    string applicationTypeName
)
[EventAttribute(1, Level=EventLevel::Informational, Keywords=EventKeywords::None)] 
public:
void ReplicaChangeRoleToPrimary (
    long long replicaId, 
    Guid partitionId, 
    String^ serviceName, 
    String^ applicationName, 
    String^ serviceTypeName, 
    String^ applicationTypeName
)
/** @attribute EventAttribute(1, Level=EventLevel.Informational, Keywords=EventKeywords.None) */ 
public void ReplicaChangeRoleToPrimary (
    long replicaId, 
    Guid partitionId, 
    String serviceName, 
    String applicationName, 
    String serviceTypeName, 
    String applicationTypeName
)
EventAttribute(1, Level=EventLevel.Informational, Keywords=EventKeywords.None) 
public function ReplicaChangeRoleToPrimary (
    replicaId : long, 
    partitionId : Guid, 
    serviceName : String, 
    applicationName : String, 
    serviceTypeName : String, 
    applicationTypeName : String
)

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.

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

ActorFrameworkEventSource Class
ActorFrameworkEventSource Members
Microsoft.ServiceFabric.Actors.Diagnostics Namespace