First published on TECHNET on Feb 08, 2011
Gary Davidson, the Chief Software Architect at
, has created a new SCSM CodePlex project called SCSM Façade. The intention of the SCSM Façade project is to make programming against the SCSM SDK a little less abstract. Because SCSM is a configuration driven platform all of the APIs are abstract. For example – we don’t have a GetIncidents() method. We only have a GetObjectReader() method which gets you objects that match the criteria you specify. The criteria is what tells SCSM to return incidents instead of change requests. So – in pseudocode you do something like this Incidents = GetObjectReader(Incident) instead of Incidents = GetIncidents().
The SCSM Façade CodePlex project tries to obscure some of the complexity of dealing with abstract APIs by exposing more concrete APIs. This is a great example from
This is an example of how to write the code using the SCSM SDK APIs to get an incident by ID:
EnterpriseManagementGroup emg =
@"HKEY_CURRENT_USERSoftwareMicrosoftSystem Center2010Service ManagerConsoleUser Settings"
// what guid is it?
ManagementPackTypeProjection typeProjection = emg.EntityTypes.GetTypeProjection(