Example #1
0
 // Token: 0x06001665 RID: 5733 RVA: 0x0007E184 File Offset: 0x0007C384
 private System.DayOfWeek LoadFirstDayOfWeek()
 {
     ExTraceGlobals.HeuristicsTracer.TraceFunction(0L, "ReminderTimeCalculatorContext.LoadFirstDayOfWeek");
     using (IReadableUserConfiguration readOnlyMailboxConfiguration = UserConfigurationHelper.GetReadOnlyMailboxConfiguration(this.session as MailboxSession, "OWA.UserOptions", UserConfigurationTypes.Dictionary, false))
     {
         if (readOnlyMailboxConfiguration != null)
         {
             IDictionary dictionary = readOnlyMailboxConfiguration.GetDictionary();
             object      obj        = dictionary[MailboxCalendarConfigurationSchema.WeekStartDay.Name];
             if (obj != null)
             {
                 ExTraceGlobals.HeuristicsTracer.TraceDebug(0L, "Found first day of week: {0}", new object[]
                 {
                     obj
                 });
                 return((System.DayOfWeek)obj);
             }
             ExTraceGlobals.HeuristicsTracer.TraceDebug(0L, "WeekStartDay is null on config object");
         }
     }
     ExTraceGlobals.HeuristicsTracer.TraceDebug(0L, "Unable to determine first day of week");
     return(System.DayOfWeek.Sunday);
 }