Exemplo n.º 1
0
 internal NodeDeactivationTask(
     NodeDeactivationTaskId taskId,
     NodeDeactivationIntent intent)
 {
     this.TaskId = taskId;
     this.Intent = intent;
 }
        internal static unsafe NodeDeactivationTaskId CreateFromNative(
            NativeTypes.FABRIC_NODE_DEACTIVATION_TASK_ID nativeResult)
        {
            var taskId = new NodeDeactivationTaskId(
                NativeTypes.FromNativeString(nativeResult.Id),
                (NodeDeactivationTaskType)nativeResult.Type);

            return(taskId);
        }
Exemplo n.º 3
0
        internal static unsafe NodeDeactivationTask CreateFromNative(
            NativeTypes.FABRIC_NODE_DEACTIVATION_TASK nativeResult)
        {
            var task = new NodeDeactivationTask(
                NodeDeactivationTaskId.CreateFromNative(*(NativeTypes.FABRIC_NODE_DEACTIVATION_TASK_ID *)nativeResult.TaskId),
                (NodeDeactivationIntent)nativeResult.Intent);

            return(task);
        }