Beispiel #1
0
        public Response <SessionSecurityToken[]> GetAll(Request <Context> request)
        {
            var data = Service.GetAll(request.Payload);

            return(new Response <SessionSecurityToken[]> {
                Payload = data.ToArray()
            });
        }
Beispiel #2
0
        public override IEnumerable <SessionSecurityToken> GetAll(string endpointId, UniqueId contextId)
        {
#warning perhaps implement this for in memory
            var data = cache.GetAll(new bUtility.TokenCache.Types.SessionSecurity.Context
            {
                EndpointId = endpointId,
                ContextId  = contextId?.ToString()
            });
            foreach (var token in data)
            {
                SessionSecurityTokenCacheKey key = new SessionSecurityTokenCacheKey(endpointId, contextId, null);
                key.IgnoreKeyGeneration = true;
                _internalCache.AddOrUpdate(key, token, token.KeyExpirationTime);
            }
            return(data);
        }