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); }
public static IMaybe<IWorkdayContext> GetWorkdayContext(string workdaySettingFolder, int projectId) { var context = new WorkdayContext(Path.Combine(workdaySettingFolder, projectId + ".json")); return (context as IWorkdayContext).ToMaybe(); }