コード例 #1
0
        public string AdvertiseAllProperties()
        {
            var job = new Job();

            var result = _autoAdvertiseResultRepository.CreateJob(job.CreateReference(_referenceGenerator));

            //kick off task
            if (result)
            {
                BackgroundJob.Enqueue(() => Advertise(job));
            }

            return job.JobReference;
        }