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);
 }
Exemple #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();
 }