Ejemplo n.º 1
0
        /// <summary>
        /// Remove a user from an email list panel's access list.
        /// </summary>
        /// <param name="authenticationToken">Authentication ticket identifying calling user.</param>
        /// <param name="emailListId">ID of the email list panel.</param>
        /// <param name="uniqueIdentifier">Unique identifier of the user to remove from the access list.</param>
        private static bool RemoveUserFromEmailListPanelAccessList(string authenticationToken, int emailListId, string uniqueIdentifier)
        {
            var proxy = new InvitationManagementServiceClient();
            var result = proxy.RemoveUserFromEmailListPanelAccessList(authenticationToken, emailListId, uniqueIdentifier);

            // Handle exceptions
            if (!result.CallSuccess)
            {
                Console.WriteLine(result.FailureMessage);
                return false;
            }

            return true;
        }