public void Add(string queueName, Model.ActionType actionType)
        {
            if (string.IsNullOrWhiteSpace(queueName))
            {
                throw new ArgumentNullException("queueName");
            }

            var tracingRecord = new Model.TracingRecord
            {
                ActionType = actionType,
                QueueName  = queueName,
                TimeStamp  = DateTime.Now
            };

            _traceRecordsRepository.AddRecord(tracingRecord);
        }
Example #2
0
 public static Resource.TracingRecord MapModelToResource(Model.TracingRecord model)
 {
     return(Mapper.Map <Model.TracingRecord, Resource.TracingRecord>(model));
 }