Esempio n. 1
0
        public static void Remove(ISqlFactory sqlFactory, string endpointID, string contextID, string keyGeneration)
        {
            var token = new SecurityTokenCache_Ex();

            token.SqlFactory  = sqlFactory;
            token._EndpointID = endpointID;
            token._ContextID  = contextID;
            if (keyGeneration != null)
            {
                token._KeyGeneration = keyGeneration;
                token.Delete(" EndpointID = @EndpointID and ContextID = @ContextID and KeyGeneration = @KeyGeneration");
            }
            else
            {
                token.Delete(" EndpointID = @EndpointID and ContextID = @ContextID ");
            }
        }
Esempio n. 2
0
        public static void RemoveAll(ISqlFactory sqlFactory, string endpointID, string contextID)
        {
            var token = new SecurityTokenCache_Ex();

            token.SqlFactory  = sqlFactory;
            token._EndpointID = endpointID;
            token._ContextID  = contextID;
            token.Delete(" EndpointID = @EndpointID and _ContextID = @ContextID ");
        }