Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Microsoft.MetadirectoryServices;
- namespace Mms_Metaverse
- {
- /// <summary>
- /// Summary description for MVExtensionObject.
- /// </summary>
- public class MVExtensionObject : IMVSynchronization
- {
- public MVExtensionObject()
- {
- //
- // TODO: Add constructor logic here
- //
- }
- void IMVSynchronization.Initialize ()
- {
- //
- // TODO: Add initialization logic here
- //
- }
- void IMVSynchronization.Terminate ()
- {
- //
- // TODO: Add termination logic here
- //
- }
- void IMVSynchronization.Provision (MVEntry mventry)
- {
- // Get the External SharePoint Profile Service MA
- ConnectedMA AZURESP1 = mventry.ConnectedMAs["AZURESP1"];
- // If not connected to the DNV MA
- if (AZURESP1.Connectors.Count == 0 && mventry.ObjectType == "person")
- {
- // Create connector
- CSEntry CSentry = AZURESP1.Connectors.StartNewConnector("user");
- CSentry["ProfileIdentifier"].StringValue = "MyGWRNDID:" + mventry["MyGWRNDID"].StringValue;
- CSentry["Anchor"].StringValue = mventry["MyGWRNDID"].StringValue;
- CSentry.CommitNewConnector();
- }
- }
- bool IMVSynchronization.ShouldDeleteFromMV (CSEntry csentry, MVEntry mventry)
- {
- //
- // TODO: Add MV deletion logic here
- //
- throw new EntryPointNotImplementedException();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement