예제 #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);
 }
예제 #2
0
파일: DataApiModule.cs 프로젝트: shchy/tips
 public static IMaybe<IWorkdayContext> GetWorkdayContext(string workdaySettingFolder, int projectId)
 {
     var context = new WorkdayContext(Path.Combine(workdaySettingFolder, projectId + ".json"));
     return (context as IWorkdayContext).ToMaybe();
 }