Domanda

Utilizziamo SharePoint 2013 e dispone di un compito di creare lavori timer che funzionano tutti i giorni, con funzionalità come l'invio di e-mail in base alle scale date di elementi di elenco, aggiungendo elementi all'elenco, modificando i valori degli elementi dell'elenco.

Sono interessato a conoscere la base su cui dovremmo prendere la decisione se impostare l'ambito della funzione Timer Job Feature to Web / SiteCol / WebApp / Farm?

È stato utile?

Soluzione

As a TimerJob has to be associated with either a WebApplication or Service, the most scope of the feature would be common would be either WebApplication or Farm.

But as always with scoping features the main concern should be at what scope does it make sense for be able to enable/disable this functionality from a business perspective. This might mean that the right scope is Web as you might want to target individual sites in your timer job. That would then imply that the feature on activation should check if the TimerJob is already present for the WebApp and if not add it and on deactivation check if this is the last site and if so remove the timerjob.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top