Tuesday, June 16, 2009

Scheduling Custom Timer Jobs

For scheduling daily, use code like this:

SPDailySchedule dailySchedule = new SPDailySchedule();
dailySchedule.BeginHour = 0;
dailySchedule.BeginMinute = 0;
dailySchedule.BeginSecond = 0;
dailySchedule.EndHour = 23;
dailySchedule.EndMinute = 59;
dailySchedule.EndSecond = 59;

job.Schedule = dailySchedule;

That tells SharePoint to run the job any time between 00:00:00 (12:00
AM) and 23:59:59 (11:59 PM) each day. You can make this window shorter
if you need to schedule it during off-peak hours.

You can also run the job hourly using this code:

SPHourlySchedule hourlySchedule = new SPHourlySchedule();
hourlySchedule.BeginMinute = 0;
hourlySchedule.EndMinute = 59;

job.Schedule = hourlySchedule;

Or every X number of minutes using this code:

SPMinuteSchedule minuteSchedule = new SPMinuteSchedule();
minuteSchedule.BeginSecond = 0;
minuteSchedule.EndSecond = 59;
minuteSchedule.Interval = X;

job.Schedule = minuteSchedule;

The Interval is only available on the SPMinuteSchedule class. Setting
it to 15 will run the job every 15 minutes for example.

Friday, June 5, 2009

Clinic 5045: Inside Look at Developing with WSS 3.0

Was able to find time today to complete this free online self-paced course offered by Microsoft and was able to get a certificate for it. I thought that was pretty cool :) Course details and notes taken from the course can be found below:

Clinic 5045: Inside Look at Developing with Microsoft® Windows® SharePoint® Services 3.0

In this 2-hour premium clinic you will learn about the rich capabilities that Windows SharePoint Services 3.0 offers to developers. The clinic will focus on Architecture and List Management, Building and Extending Windows SharePoint Sites, and Packaging and Deploying Windows SharePoint services solutions.Having this knowledge will enable you to determine how to incorporate Windows SharePoint Services into your workspace solution development. Additionally, it will enable you to consider deployment options for your SharePoint solutions.

At the end of the course, students will be able to:
- Describe Site and Workspace management and Document storage.
- Describe Integration with ASP.NET and Microsoft Office SharePoint Server 2007.
- Describe Sites, Lists, Content Types and Collaborative features.
- Describe Programming with WSS and using the WSS Event model.
- Describe the Property Bag and Change Log.
- Describe SharePoint Pages, Master Pages and Content Pages.
- Describe Custom Views and Templates.
- SharePoint Designer
- Describe Web parts and Workflow support.
- Describe the Administrative object model.
- Describe how to create deployable Windows SharePoint Services-based solutions.
- Describe the Feature framework.
- Describe the Solution deloyment model.

For notes taken, you may go here.

For details on how to enroll in this clinic, please refer to an earlier post entitled, "myrampup.com".