Esempio n. 1
0
        /// <summary>
        /// Shorthand method for creating and queuing a JobStatusChange in a one line call
        /// </summary>
        /// <param name="jobID"></param>
        /// <param name="sourceSystem"></param>
        /// <param name="jobStatus"></param>
        /// <param name="userID"></param>
        /// <param name="lastUpdated"></param>
        /// <param name="jobInstanceNumber"></param>
        /// <param name="service"></param>
        /// <param name="windowsIdentity"></param>
        /// <param name="isOfficeUser"></param>
        /// <param name="incompleteReason"></param>
        /// <param name="extendedProperties"></param>
        public static void Broadcast(int jobID, eWMSourceSystem sourceSystem, eJobStatus jobStatus, string userID, DateTime lastUpdated, int jobInstanceNumber, string service, string windowsIdentity, bool isOfficeUser, IncompleteReason incompleteReason, SerializableHashTable extendedProperties)
        {
            JobStatusChange statusChange = new JobStatusChange();
            
            statusChange.ID = jobID;
            statusChange.SourceSystem = sourceSystem;
            statusChange.Status = jobStatus;
            statusChange.UserID = userID;
			statusChange.LastUpdated = lastUpdated;
            statusChange.Service = service;
            statusChange.InstanceNumber = jobInstanceNumber;
            if (windowsIdentity == null)
            {
                statusChange.WindowsIdentity = Environment.UserName;
            }
            else
            {
                statusChange.WindowsIdentity = windowsIdentity;
            }
            statusChange.IsOfficeUser = isOfficeUser;
            statusChange.IncompleteReason = incompleteReason;
            statusChange.ExtendedProperties = extendedProperties;
            statusChange.EnqueueMessage();
        }
Esempio n. 2
0
 /// <summary>
 /// Shorthand method for creating and queuing a JobStatusChange in a one line call
 /// </summary>
 /// <param name="jobID"></param>
 /// <param name="sourceSystem"></param>
 /// <param name="jobStatus"></param>
 /// <param name="userID"></param>
 /// <param name="lastUpdated"></param>
 /// <param name="jobInstanceNumber"></param>
 /// <param name="service"></param>
 /// <param name="windowsIdentity"></param>
 /// <param name="isOfficeUser"></param>
 /// <param name="incompleteReason"></param>
 public static void Broadcast(int jobID, eWMSourceSystem sourceSystem, eJobStatus jobStatus, string userID, DateTime lastUpdated, int jobInstanceNumber, string service, string windowsIdentity, bool isOfficeUser, IncompleteReason incompleteReason)
 {
     Broadcast(jobID, sourceSystem, jobStatus, userID, lastUpdated, jobInstanceNumber, service, windowsIdentity, isOfficeUser, incompleteReason);
 }