Changeset 153
- Timestamp:
- 05/06/08 18:22:46 (3 months ago)
- Files:
-
- trunk/QLNet/QLNet/Currencies/ExchangeRateManager.cs (modified) (3 diffs)
- trunk/QLNet/QLNet/Indexes/Indexmanager.cs (modified) (2 diffs)
- trunk/QLNet/QLNet/Money.cs (modified) (3 diffs)
- trunk/QLNet/QLNet/Settings.cs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/QLNet/QLNet/Currencies/ExchangeRateManager.cs
r99 r153 2 2 Copyright (C) 2008 Andrea Maggiulli 3 3 Copyright (C) 2008 Siarhei Novik (snovik@gmail.com) 4 4 Copyright (C) 2008 Toyin Akin (toyin_akin@hotmail.com) 5 5 6 This file is part of QLNet Project http://www.qlnet.org 6 7 … … 22 23 using System.Collections.Generic; 23 24 using System.Text; 25 using System.Threading; 24 26 25 27 namespace QLNet … … 31 33 public class ExchangeRateManager 32 34 { 35 [ThreadStatic] 33 36 public static readonly ExchangeRateManager Instance = new ExchangeRateManager(); 34 37 private ExchangeRateManager() { trunk/QLNet/QLNet/Indexes/Indexmanager.cs
r62 r153 1 1 /* 2 2 Copyright (C) 2008 Siarhei Novik (snovik@gmail.com) 3 3 Copyright (C) 2008 Toyin Akin (toyin_akin@hotmail.com) 4 * 4 5 This file is part of QLNet Project http://www.qlnet.org 5 6 … … 19 20 using System; 20 21 using System.Collections.Generic; 21 using QLNet;22 using System.Threading; 22 23 23 24 namespace QLNet { 24 25 //! global repository for past index fixings 25 26 public static class IndexManager { 27 28 [ThreadStatic] 26 29 private static Dictionary<string, TimeSeries<double>> data_ = new Dictionary<string, TimeSeries<double>>(); 27 30 trunk/QLNet/QLNet/Money.cs
r151 r153 1 1 /* 2 2 Copyright (C) 2008 Andrea Maggiulli 3 3 Copyright (C) 2008 Toyin Akin (toyin_akin@hotmail.com) 4 4 5 This file is part of QLNet Project http://www.qlnet.org 5 6 … … 21 22 using System.Collections.Generic; 22 23 using System.Text; 24 using System.Threading; 23 25 24 26 namespace QLNet … … 52 54 #region Attributes 53 55 56 [ThreadStatic] 54 57 public static ConversionType conversionType; 58 59 [ThreadStatic] 55 60 public static Currency baseCurrency; 61 56 62 private double value_; 57 63 private Currency currency_; trunk/QLNet/QLNet/Settings.cs
r97 r153 1 1 /* 2 2 Copyright (C) 2008 Siarhei Novik (snovik@gmail.com) 3 3 Copyright (C) 2008 Toyin Akin (toyin_akin@hotmail.com) 4 * 4 5 This file is part of QLNet Project http://www.qlnet.org 5 6 … … 20 21 using System.Collections.Generic; 21 22 using System.Text; 22 using QLNet;23 using System.Threading; 23 24 24 25 namespace QLNet { … … 26 27 // we can not derive it from IObservable because the class is static 27 28 public static class Settings { 29 30 [ThreadStatic] 28 31 private static Date evaluationDate_ = Date.Today; 32 33 [ThreadStatic] 29 34 private static bool enforcesTodaysHistoricFixings_ = false; 30 35 … … 43 48 // Observable interface 44 49 private static event Callback notifyObserversEvent; 50 45 51 public static void registerWith(Callback handler) { notifyObserversEvent += handler; } 46 52 public static void unregisterWith(Callback handler) { notifyObserversEvent -= handler; }