コード例 #1
0
        /// <summary>
        /// Build the invite url
        /// </summary>
        /// <param name="user">The user that recieves the invite</param>
        /// <param name="group">The group where the user is invited user</param>
        /// <returns>The invitation URL</returns>
        private string BuildInviteURL(User user, Group group)
        {
            string jwtToken = _tokenHandler.CreateInviteToken(user, group);

            string     apiBaseUrl = _configuration.GetSection("InviteEmailUrl").Value;
            UriBuilder uriBuilder = new UriBuilder(apiBaseUrl);

            uriBuilder.Path = Path.Combine(uriBuilder.Path, jwtToken);

            return(uriBuilder.ToString());
        }