Alexandria.Client.Infrastructure.CachingMessageModule.TransportOnMessageArrived C# (CSharp) Метод

TransportOnMessageArrived() приватный Метод

private TransportOnMessageArrived ( Rhino.ServiceBus.Impl.CurrentMessageInformation currentMessageInformation ) : bool
currentMessageInformation Rhino.ServiceBus.Impl.CurrentMessageInformation
Результат bool
        private bool TransportOnMessageArrived(CurrentMessageInformation currentMessageInformation)
        {
            var cachableResponse = currentMessageInformation.Message as ICacheableResponse;
            if (cachableResponse == null)
                return false;

            var alreadyInCache = cache.Get(cachableResponse.Key);
            if (alreadyInCache == null || alreadyInCache.Timestamp < cachableResponse.Timestamp)
                cache.Put(cachableResponse.Key, cachableResponse.Timestamp, cachableResponse);

            return false;
        }