public async Task <IEnumerable <ClaimHandle> > FindClaimHandleByUserIdAsync(Guid userId,
                                                                                    CancellationToken cancellationToken = default(CancellationToken))
        {
            MyMappings.Init();
            var     session = CassandraSession;
            IMapper mapper  = new Mapper(session);

            cancellationToken.ThrowIfCancellationRequested();
            var records =
                await
                mapper.FetchAsync <ClaimHandle>("WHERE userId = ?", userId);

            return(records);
        }
        public async Task EstablishConnectionAsync()
        {
            try
            {
                if (CassandraSession == null)
                {
                    var dao = new CassandraDao(CassandraConfig);
                    CassandraSession = await dao.GetSessionAsync();

                    //-----------------------------------------------
                    // PREPARED STATEMENTS for Claims
                    //-----------------------------------------------
                    PrepareClaimsStatements();

                    //-----------------------------------------------
                    // PREPARED STATEMENTS for Roles
                    //-----------------------------------------------
                    PrepareRolesStatements();

                    //-----------------------------------------------
                    // PREPARED STATEMENTS for UserRoles
                    //-----------------------------------------------
                    PrepareUserRolesStatements();

                    //-----------------------------------------------
                    // PREPARED STATEMENTS for ProviderLogins
                    //-----------------------------------------------
                    PrepareProviderLoginsStatements();

                    //-----------------------------------------------
                    // PREPARED STATEMENTS for Users
                    //-----------------------------------------------
                    PrepareUserStatements();

                    MyMappings.Init();
                }
            }
            catch (Exception e)
            {
                CassandraSession = null;
            }
        }