private static JobsDictionary CreateJobsDictionary()
    {
        var jobs = new JobsDictionary();

        //TODO: get the Data from the Database
        jobs.Add("earnings", "EarningsWhispers", "http://...");
        jobs.Add("stock", "YahooStock", "http://...");
        jobs.Add("functions", "Functions", null);

        return(jobs);
    }
Пример #2
0
 private void Initialize()
 {
     // Double-checked lock.
     if (jobsDictionary == null)
     {
         lock (syncRoot)
         {
             if (jobsDictionary == null)
             {
                 jobsDictionary = CreateJobsDictionary();
             }
         }
     }
 }
 static GlobalVar()
 {
     jobsDictionary = CreateJobsDictionary();
 }