Show / Hide Table of Contents
    • Yort.LatitudePay.InStore
      • ILatitudePayClient
      • ILatitudePaySignatureGenerator
      • ILatitudePaySystemClock
      • LatitiudePayShippingLine
      • LatitudePayAddress
      • LatitudePayApiException
      • LatitudePayAuthToken
      • LatitudePayAvailability
      • LatitudePayCancelPurchaseRequest
      • LatitudePayCancelPurchaseResponse
      • LatitudePayClient
      • LatitudePayClientConfiguration
      • LatitudePayConfigurationRequest
      • LatitudePayConfigurationResponse
      • LatitudePayConstants
      • LatitudePayCreatePosPurchaseRequest
      • LatitudePayCreatePosPurchaseResponse
      • LatitudePayCreateRefundRequest
      • LatitudePayCreateRefundResponse
      • LatitudePayCurrencies
      • LatitudePayCustomer
      • LatitudePayEnvironment
      • LatitudePayHMACSHA256SignatureGenerator
      • LatitudePayMoney
      • LatitudePayProduct
      • LatitudePayPurchaseStatusRequest
      • LatitudePayPurchaseStatusResponse
      • LatitudePayReturnUrls
      • LatitudePaySystemClock

    Class LatitudePaySystemClock

    Represents the default system clock used by the Yort.LatitudePay.Instore library to retrieve the current date and time.

    Inheritance
    Object
    LatitudePaySystemClock
    Implements
    ILatitudePaySystemClock
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Yort.LatitudePay.InStore
    Assembly: Yort.LatitudePay.InStore.dll
    Syntax
    public sealed class LatitudePaySystemClock : ILatitudePaySystemClock
    Remarks

    This implementation simply wraps the Now property and relies on the underlying system clock for accuracy.

    This class has a private constructor and cannot be created by user code. To obtain and instance use the static DefaultInstance property.

    Properties

    | Improve this Doc View Source

    DefaultInstance

    Returns an instance of this clock.

    Declaration
    public static LatitudePaySystemClock DefaultInstance { get; }
    Property Value
    Type Description
    LatitudePaySystemClock
    Remarks

    The instance returned by this method is cached after the first call to reduce allocations, so all subsquent calls will receive the same shared instance. However the property is not thread-safe and two threads calling the method simultanously for the first time may receive different instances. This should not cause a problem as clients should not (and are instructed not to) compare instances or rely on shared instances.

    | Improve this Doc View Source

    Now

    Returns the current date and time from the system clock.

    Declaration
    public DateTimeOffset Now { get; }
    Property Value
    Type Description
    DateTimeOffset

    Implements

    ILatitudePaySystemClock
    • Improve this Doc
    • View Source
    Back to top Copyright (c) 2020 Troy Willmot