protected void HPM_TasksCreated(Object sender, TasksCreateEventArgs e)
        {
            var sessions = (List <HttpSessionState>)Application["sessions"];

            foreach (var session in sessions)
            {
                HPMUpdateInfo updateinfo = session["updateinfo"] as HPMUpdateInfo;

                foreach (HPMChangeCallbackData_TaskCreateUnifiedTask createdTask in e.data.m_Tasks)
                {
                    try
                    {
                        updateinfo.CreatedTasks.Add(createdTask.m_TaskRefID.m_ID, createdTask.m_TaskRefID);
                    }
                    catch (ArgumentException)
                    {
                    }
                }
            }
        }
示例#2
0
    public override void On_TaskCreateUnified(HPMChangeCallbackData_TaskCreateUnified data)
    {
        TasksCreateEventArgs dataArgs = new TasksCreateEventArgs(data);

        TasksCreateEvent(this, dataArgs);
    }
        protected void HPM_TasksCreated(Object sender, TasksCreateEventArgs e)
        {
            var sessions = (List<HttpSessionState>)Application["sessions"];

            foreach (var session in sessions)
            {
                HPMUpdateInfo updateinfo = session["updateinfo"] as HPMUpdateInfo;

                foreach (HPMChangeCallbackData_TaskCreateUnifiedTask createdTask in e.data.m_Tasks)
                {
                    try
                    {
                        updateinfo.CreatedTasks.Add(createdTask.m_TaskRefID.m_ID, createdTask.m_TaskRefID);
                    }
                    catch (ArgumentException)
                    {
                    }
                    
                }
            }
        }
 public override void On_TaskCreateUnified(HPMChangeCallbackData_TaskCreateUnified data)
 {
     TasksCreateEventArgs dataArgs = new TasksCreateEventArgs(data);
     TasksCreateEvent(this, dataArgs);
 }