Exemplo n.º 1
0
 /// <summary>
 /// Gets all items.
 /// </summary>
 /// <returns></returns>
 internal List <MessageAuditEntry> GetAllItems()
 {
     return(AuditEntryController.GetAuditEntries(
                "",
                "",
                "All",
                "All",
                "All",
                "",
                "",
                1,
                20));
 }
Exemplo n.º 2
0
        /// <summary>
        /// Processes the request.
        /// </summary>
        /// <param name="requestMessage">The request message.</param>
        public override void ProcessRequest(RequestMessage requestMessage)
        {
            try
            {
                // Create a new audit entry
                MessageAuditEntry AuditEntry = new MessageAuditEntry();

                // Seed values
                AuditEntry.Id                = -1;
                AuditEntry.SourceSystem      = requestMessage.SourceSystem;
                AuditEntry.DestinationSystem = requestMessage.DestinationSystem;
                AuditEntry.ReceivedDate      = DateTime.Now;
                AuditEntry.Message           = requestMessage.Body;
                AuditEntry.Sequence          = requestMessage.Sequence;
                AuditEntry.Type              = requestMessage.Type;
                AuditEntry.Name              = requestMessage.Name;
                AuditEntry.Label             = requestMessage.Label;
                AuditEntry.UpdatedBy         = this.GetType().FullName;

                // Save the audit entry to the db
                AuditEntryController.SaveAuditEntry(AuditEntry);

                // Cache the audit entry for later use
                this.RequestProcessor.RequestDictionary["AuditEntry"] = AuditEntry;

                // All done
                Status = SubscriberStatusEnum.Processed;
            }
            catch (Exception ex)
            {
                // Store last error
                LastError = ex;

                // Failed
                Status = SubscriberStatusEnum.Failed;
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Saves the item.
 /// </summary>
 /// <param name="auditEntry">The audit entry.</param>
 /// <returns></returns>
 internal int SaveItem(MessageAuditEntry auditEntry)
 {
     return(AuditEntryController.SaveAuditEntry(auditEntry));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets the destination system list.
 /// </summary>
 /// <returns></returns>
 internal List <MessageAuditEntry> GetDestinationSystemList()
 {
     return(AuditEntryController.GetDestinationSystemList());
 }
Exemplo n.º 5
0
 /// <summary>
 /// Gets the source system list.
 /// </summary>
 /// <returns></returns>
 internal List <MessageAuditEntry> GetSourceSystemList()
 {
     return(AuditEntryController.GetSourceSystemList());
 }
Exemplo n.º 6
0
 /// <summary>
 /// Gets the item.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <returns></returns>
 internal MessageAuditEntry GetItem(int id)
 {
     return(AuditEntryController.GetAuditEntry(id));
 }