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