Esempio n. 1
0
        public static void RemoveAllExpired(ISqlFactory sqlFactory)
        {
            var token = new TokenReplayCache_Ex();

            token.SqlFactory      = sqlFactory;
            token._ExpirationTime = DateTime.Now;
            token.Delete(" ExpirationTime < @ExpirationTime ");
        }
Esempio n. 2
0
        public static void Remove(ISqlFactory sqlFactory, string key)
        {
            var token = new TokenReplayCache_Ex();

            token.SqlFactory = sqlFactory;
            token._TokenKey  = key;
            token.Delete(" TokenKey = @TokenKey ");
        }