public void Dispose() { spcontext.Dispose(); if (profileSyncService != null) { profileSyncService.Dispose(); } }