/// <summary> /// Constructs a NodeTransitionDescription /// </summary> /// <param name="nodeTransitionType">Indicates the type of transition to perform. NodeTransitionType.Start will start a stopped node. NodeTransitionType.Stop will stop a node that is up.</param> /// <param name="operationId">A Guid to identify this operation. This should be unique, and should not be used with other operations.</param> /// <param name="nodeName">The name of the node to start or stop. The name can be determined through GetNodeListAsync().</param> /// <param name="nodeInstanceId">The node instance id of the target node. This can be determined through GetNodeListAsync().</param> protected NodeTransitionDescription(NodeTransitionType nodeTransitionType, Guid operationId, string nodeName, BigInteger nodeInstanceId) { this.nodeTransitionType = nodeTransitionType; this.operationId = operationId; this.nodeName = nodeName; this.nodeInstanceId = nodeInstanceId; }
internal static unsafe StartNodeTransitionDescription CreateFromNative(IntPtr nativeRaw) { NativeTypes.FABRIC_START_NODE_TRANSITION_DESCRIPTION native = *(NativeTypes.FABRIC_START_NODE_TRANSITION_DESCRIPTION *)nativeRaw; Guid operationId = native.OperationId; string nodeName = NativeTypes.FromNativeString(native.NodeName); NodeTransitionType nodeTransitionType = (NodeTransitionType)native.NodeTransitionType; BigInteger nodeInstanceId = new BigInteger(native.NodeInstanceId); return(new StartNodeTransitionDescription(operationId, nodeTransitionType, nodeName, nodeInstanceId)); }
public StartNodeTransitionDescription( Guid operationId, NodeTransitionType nodeTransitionType, string nodeName, BigInteger nodeInstanceId) { this.OperationId = operationId; this.NodeTransitionType = nodeTransitionType; this.NodeName = nodeName; this.NodeInstanceId = nodeInstanceId; }