SIPSorcery.AppServer.DialPlan.DialPlanEngine.GetExecutionCountForUser C# (CSharp) Method

GetExecutionCountForUser() public method

Gets the number of currently executing dial plan scripts for the specified username.
public GetExecutionCountForUser ( string username ) : int
username string The username to get the execution count for.
return int
        public int GetExecutionCountForUser(string username)
        {
            try
            {
                return (from script in m_runningScripts where script.Owner == username select script).Count();
            }
            catch (Exception excp)
            {
                logger.Error("Exception GetExecutionCountForUser. " + excp.Message);
                return 0;
            }
        }