Microsoft
70-573 · Question #127
You have a timer job that has the following constructors. (Line numbers are included for reference only.) 01 public TimerJob1 () : base() { } 02 public TimerJob1(SPWebApplication wApp) You need to…
The correct answer is B. public TimerJob1(SPWebApplication wApp). MNEMONIC RULE: "SPJobLockType.Job" Job member locks the timer job so that it runs only on one machine in the farm. SPJobLockType Enumeration
Developing Business Logic
Question
You have a timer job that has the following constructors. (Line numbers are included for reference only.) 01 public TimerJob1 () : base() { } 02 public TimerJob1(SPWebApplication wApp) You need to ensure that the timer job runs on the first available timer server only. Which base class constructor should you use at line 02?
Options
- Apublic TimerJob1(SPWebApplication wApp) :
- Bpublic TimerJob1(SPWebApplication wApp):
- Cpublic TimerJob1(SPWebApplication wApp):
- Dpublic TimerJob1(SPWebApplication wApp):
How the community answered
(28 responses)- A4% (1)
- B79% (22)
- C11% (3)
- D7% (2)
Explanation
MNEMONIC RULE: "SPJobLockType.Job" Job member locks the timer job so that it runs only on one machine in the farm. SPJobLockType Enumeration
Topics
#timer jobs#SPJobLockType#SPWebApplication#server affinity
Community Discussion
No community discussion yet for this question.