protected override async Task InitModuleAsync(IMapSet map) { Module = new ExamModule(); await Module.InitAsync(new ExamInitializationContext(map)).ContinueWith(task => { }); }
public ExamContext(ExamTimeMode timeMode, IMapSet map, double examDistance) : this() { ExamTimeMode = timeMode; Map = map; ExamDistance = examDistance; }
protected virtual async Task InitModuleAsync(IMapSet map) { Module = new ExamModule(); await Module.InitAsync(new ExamInitializationContext(map)).ContinueWith(task => { //wcf //wcf //wcf //wcf.....//wcf...... }); }
/// <summary> /// Gets the specified map group by its id /// </summary> /// <param name="set"></param> /// <param name="id"></param> /// <returns></returns> public static IMapGroup GetGroupById(this IMapSet set, string id) { Check.NotNull(set, "set"); //NOXLATE foreach (var group in set.MapGroups) { if (group.id.Equals(id)) { return(group); } } return(null); }
public static bool IsEmpty(this IMapSet map) { return(map.MapPoints == null || map == MapSet.Empty || map.MapPoints.Length == 0); }
public ExamInitializationContext(IMapSet map) { MapSet = map; }