本文整理汇总了C#中ITrigger.GetType方法的典型用法代码示例。如果您正苦于以下问题:C# ITrigger.GetType方法的具体用法?C# ITrigger.GetType怎么用?C# ITrigger.GetType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITrigger
的用法示例。
在下文中一共展示了ITrigger.GetType方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: addTrigger
public void addTrigger(ITrigger trigger)
{
Type t = trigger.GetType();
if (!_list.ContainsKey(t))
_list.Add(t, new List<ITrigger>());
if( !_list[t].Contains(trigger) )
_list[t].Add(trigger);
}
示例2: TriggerDetailDto
protected TriggerDetailDto(ITrigger trigger, ICalendar calendar)
{
Description = trigger.Description;
TriggerType = trigger.GetType().AssemblyQualifiedNameWithoutVersion();
Name = trigger.Key.Name;
Group = trigger.Key.Group;
CalendarName = trigger.CalendarName;
Priority = trigger.Priority;
StartTimeUtc = trigger.StartTimeUtc;
EndTimeUtc = trigger.EndTimeUtc;
NextFireTimes = TriggerUtils.ComputeFireTimes((IOperableTrigger) trigger, calendar, 10);
}
示例3: Bind
internal virtual void Bind(ITaskDefinition iTaskDef)
{
var o = iTaskDef.Triggers;
_v2Trigger = o.Create(_ttype);
Marshal.ReleaseComObject(o);
foreach (string str in unboundValues.Keys)
{
try
{
var obj2 = unboundValues[str];
CheckBindValue(str, ref obj2);
_v2Trigger.GetType().InvokeMember(str, BindingFlags.SetProperty, null, _v2Trigger, new object[] { obj2 });
}
catch (TargetInvocationException ex) { throw ex.InnerException; }
catch { }
}
unboundValues.Clear();
unboundValues = null;
_repititionPattern = new RepetitionPattern(this);
_repititionPattern.Bind();
}
示例4: EditView
private ViewResult EditView(ITrigger trigger)
{
ITriggerViewModel viewModel = _mappingEngine.Map<ITrigger, ITriggerViewModel>(trigger);
string viewName = string.Format("Edit{0}", trigger.GetType().Name);
return View(viewName, viewModel);
}
示例5: removeTrigger
public bool removeTrigger(ITrigger trigger)
{
Type t = trigger.GetType();
if (_list.ContainsKey(t) && _list[t].Contains(trigger))
{
_list[t].Remove(trigger);
if (_list[t].Count == 0)
_list.Remove(t);
return true;
}
else return false;
}
示例6: Bind
internal virtual void Bind(ITaskDefinition iTaskDef)
{
var iTriggers = iTaskDef.Triggers;
v2Trigger = iTriggers.Create(ttype);
Marshal.ReleaseComObject(iTriggers);
foreach (var key in unboundValues.Keys) {
try {
var o = unboundValues[key];
CheckBindValue(key, ref o);
v2Trigger.GetType().InvokeMember(key, BindingFlags.SetProperty, null, v2Trigger, new[] {o});
} catch (TargetInvocationException tie) {
throw tie.InnerException;
} catch {
}
}
unboundValues.Clear();
unboundValues = null;
repititionPattern = new RepetitionPattern(this);
repititionPattern.Bind();
}