예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonObject"/> class.
 /// </summary>
 /// <param name="dateTimeHandler">The object that determines how date time values are parsed.</param>
 /// <param name="encryptionMechanism">The object the performs encryption operations.</param>
 /// <param name="encryptKey">A key optionally used by the encryption mechanism during encryption operations.</param>
 /// <param name="serializationState">An object optionally used by the encryption mechanism to carry state across multiple encryption operations.</param>
 public JsonObject(
     IDateTimeHandler dateTimeHandler         = null,
     IEncryptionMechanism encryptionMechanism = null,
     object encryptKey = null,
     SerializationState serializationState = null)
     : this(new JsonSerializeOperationInfo
 {
     DateTimeHandler = dateTimeHandler ?? DateTimeHandler.Default,
     EncryptionMechanism = encryptionMechanism,
     EncryptKey = encryptKey,
     SerializationState = serializationState
 })
 {
 }
예제 #2
0
 public TransactionRepository(IDateTimeHandler dateTimeHandler)
 {
     _dateTimeHandler  = dateTimeHandler;
     _transactionStore = new List <Transaction>();
 }