Esempio n. 1
0
 private void GetWorkdayContext(GetOrder<int, IWorkdayContext> order)
 {
     var callback = order.Callback;
     var projectId = order.Param;
     var context = new WorkdayContext(Path.Combine(this.workdaySettingFolder, projectId + ".json"));
     callback(context);
 }
Esempio n. 2
0
 public static IMaybe<IWorkdayContext> GetWorkdayContext(string workdaySettingFolder, int projectId)
 {
     var context = new WorkdayContext(Path.Combine(workdaySettingFolder, projectId + ".json"));
     return (context as IWorkdayContext).ToMaybe();
 }