BlueCollar.Worker.CreateWorking C# (CSharp) Méthode

CreateWorking() static private méthode

Creates a working record from the given queued record.
static private CreateWorking ( QueueRecord queued, long workerId, long scheduleId, System.DateTime startedOn ) : WorkingRecord
queued QueueRecord The queued record to create the working record for.
workerId long The ID of the worker to create the record for.
scheduleId long The ID of the schedule to create the record for.
startedOn System.DateTime The start date to create the record with.
Résultat WorkingRecord
        internal static WorkingRecord CreateWorking(QueueRecord queued, long workerId, long? scheduleId, DateTime startedOn)
        {
            return new WorkingRecord()
            {
                ApplicationName = queued.ApplicationName,
                Data = queued.Data,
                JobName = queued.JobName,
                JobType = queued.JobType,
                QueuedOn = queued.QueuedOn,
                QueueName = queued.QueueName,
                ScheduleId = scheduleId,
                StartedOn = startedOn,
                TryNumber = queued.TryNumber,
                WorkerId = workerId
            };
        }