This provider can be used to build a very basic provider, register it with the system, and have it return some data to the caller. Some calculations are performed on the server side in order to return the current time of the MPS Server.
To register the Time Provider Sample in Visual Studio 2005
You can open up Provisioning Manager and import this namespace, or go to a command prompt, navigate to <SystemDrive>:Program Files\Microsoft Hosting\Development\Samples\VBNet\2.0\GetTime and use the 'provnamespace' command to register the namespace with MPS with the following command: Provnamespace TimeProviderVB_ns.xml
To register the Time Provider Sample in Visual Studio 2005 using MPS SDK add-in features
The MPS Output window should indicate that the namespace was registered successfully. A new namespace beginning with the letters "SDK" should now show up in the Provisioning Manager, and refreshing the Namespace Browser window in Visual Studio should yield the same result.
Now a request can be submitted from the command line in order to test the provider. Create a sample request, similar to the following:
Submit the request to MPS, and the response from MPS should be similar to the following sample:
A test can also be run from within Visual Studio 2005 by opening the MPS Development Tools.
To test the Time Sample Provider within Visual Studio 2005