MyService.BeginJob C# (CSharp) 메소드

BeginJob() 개인적인 메소드

private BeginJob ( ) : int
리턴 int
        public int BeginJob()
        {
            int id = GetJobID();
            // Save to a database or persistent data source
            SaveJobStatus(id, JobStatus.Running);
            ThreadPool.QueueUserWorkItem(s =>
            {
                // Do the work here
                SaveJobStatus(id, JobStatus.Completed);
            }
            return id;
        }
        [WebMethod]