当前位置: 首页>>代码示例>>C#>>正文


C# ITrigger.GetType方法代码示例

本文整理汇总了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);
            }
开发者ID:stevenvergenz,项目名称:OpenChatbag,代码行数:10,代码来源:Interaction.cs

示例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);
 }
开发者ID:quartznet,项目名称:quartznet,代码行数:12,代码来源:TriggerDetailDto.cs

示例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();
 }
开发者ID:BclEx,项目名称:AdamsyncEx,代码行数:21,代码来源:Trigger.cs

示例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);
 }
开发者ID:AcklenAvenue,项目名称:GeoTriggers,代码行数:6,代码来源:TriggerController.cs

示例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;
            }
开发者ID:stevenvergenz,项目名称:OpenChatbag,代码行数:15,代码来源:Interaction.cs

示例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();
        }
开发者ID:virmitio,项目名称:coapp,代码行数:21,代码来源:Trigger.cs


注:本文中的ITrigger.GetType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。