public void Renew(Expires expires) { if (expires.Value is DateTime) { _expirationDate = (DateTime)expires.Value; } else { _expirationDate = DateTime.Now + (TimeSpan)expires.Value; } }
public void Renew(Expires expires) { }
public Subscription(Expires expires, IEventingRequestHandler requestHandler, object filterInstance, EndpointReference subscriptionManagerReference, IIncomingHeaders incomingHeaders) { _handlerSubscription = requestHandler.Subscribe(this, filterInstance, subscriptionManagerReference, incomingHeaders); Renew(expires); }
private Expires CalculateExpiration(Expires nullableExpirationValue) { return nullableExpirationValue ?? Expires.FromTimeSpan(DefaultExpirationTime); }