示例#1
0
        public RenewResponse Renew(RenewRequest request)
        {
            IdentifierHeader identifierHeader = OperationContextProxy.Current.FindHeader <IdentifierHeader>();

            lock (_activeSubscriptions)
            {
                Subsciption toRenew;
                if (_activeSubscriptions.TryGetValue(identifierHeader.Value, out toRenew))
                {
                    toRenew.Renew(request.Expires ?? Expires.FromTimeSpan(DefaultExpirationTime));
                }
            }
            return(new RenewResponse
            {
                Expires = request.Expires
            });
        }
示例#2
0
 public RenewResponse Renew(RenewRequest request)
 {
     return(_eventingServer.Renew(request));
 }