Microsoft.Zing.ZingerSchedulerState.Map C# (CSharp) Method

Map() public method

This function Maps P process to Zing Process
public Map ( int P_ProcessId ) : void
P_ProcessId int
return void
        public void Map(int P_ProcessId)
        {
            PprocessToZingprocess.Add(P_ProcessId, lastZingProcessCreatedId);
        }

Usage Example

 /// <summary>
 /// This function is called in response to invoke-scheduler function in the zing model.
 /// </summary>
 /// <param name="Params"></param>
 public void Invoke(ZingerSchedulerState ZSchedulerState, params object[] Params)
 {
     var param1_operation = (string)Params[0];
     if (param1_operation == "map")
     {
         var Param2_PprocessId = (int)Params[1];
         ZSchedulerState.Map(Param2_PprocessId);
     }
     else if (param1_operation == "enabled")
     {
         var param2_target = (int)Params[1];
         var param3_source = (int)Params[2];
         OnEnabled(ZSchedulerState, param2_target, param3_source);
     }
     else if (param1_operation == "blocked")
     {
         var param2_source = (int)Params[1];
         OnBlocked(ZSchedulerState, param2_source);
     }
     else if (param1_operation == "zingerop")
     {
         ZingerOperation(ZSchedulerState, Params);
     }
     else
     {
         OtherOperations(ZSchedulerState, Params);
     }
 }