So, basically, insert this code where you have "Something Here ??????".

There's nothing fancy here. In other words, "MonitorCreatedForm" fires asynchronously..so your task code will end right away..but the form will open on it's own thread.

The reason you won't find this code documented is because the Console API is not supported by Microsoft and may change in future versions of Service Manager (potentially rendering your task obsolete..or worse..it'll start crashing).

Incidentally, while it's pretty much necessary in this instance, I recommend you not mix the SCSM SDK and the Console API together..it's usually safer that way :) But, like I said, in this case it's sort of necessary since the CreateNewInstanceLink method
actually requires SCSM SDK objects.

edit: by the way, i obviously didn't include any error handling/trapping in my code..you'll probably want to in your code :)

In your MP, this line: <Argument Name="Type">WpfControlLibrary3.WpfControlLibrary3TaskHandler</Argument> should be: <Argument Name="Type">WpfControlLibrary3.CallServiceRequestTemplate</Argument> CallServiceRequestTemplate is the name of the class (the
type) you're trying to instantiate as a console task. I'm not sure where WpfControlLibrary3TaskHandler came from??

So, basically, insert this code where you have "Something Here ??????".

There's nothing fancy here. In other words, "MonitorCreatedForm" fires asynchronously..so your task code will end right away..but the form will open on it's own thread.

The reason you won't find this code documented is because the Console API is not supported by Microsoft and may change in future versions of Service Manager (potentially rendering your task obsolete..or worse..it'll start crashing).

Incidentally, while it's pretty much necessary in this instance, I recommend you not mix the SCSM SDK and the Console API together..it's usually safer that way :) But, like I said, in this case it's sort of necessary since the CreateNewInstanceLink method
actually requires SCSM SDK objects.

edit: by the way, i obviously didn't include any error handling/trapping in my code..you'll probably want to in your code :)

In your MP, this line: <Argument Name="Type">WpfControlLibrary3.WpfControlLibrary3TaskHandler</Argument> should be: <Argument Name="Type">WpfControlLibrary3.CallServiceRequestTemplate</Argument> CallServiceRequestTemplate is the name of the class (the
type) you're trying to instantiate as a console task. I'm not sure where WpfControlLibrary3TaskHandler came from??

Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.