/// <summary> /// Use the given TriggerKey to identify the Trigger. /// </summary> /// <remarks> /// <para>If none of the 'withIdentity' methods are set on the TriggerBuilder, /// then a random, unique TriggerKey will be generated.</para> /// </remarks> /// <param name="key">the TriggerKey for the Trigger to be built</param> /// <returns>the updated TriggerBuilder</returns> /// <seealso cref="TriggerKey" /> /// <seealso cref="ITrigger.Key" /> public TriggerBuilder WithIdentity(TriggerKey key) { this.key = key; return(this); }
/// <summary> /// Use a TriggerKey with the given name and group to /// identify the Trigger. /// </summary> /// <remarks> /// <para>If none of the 'withIdentity' methods are set on the TriggerBuilder, /// then a random, unique TriggerKey will be generated.</para> /// </remarks> /// <param name="name">the name element for the Trigger's TriggerKey</param> /// <param name="group">the group element for the Trigger's TriggerKey</param> /// <returns>the updated TriggerBuilder</returns> /// <seealso cref="TriggerKey" /> /// <seealso cref="ITrigger.Key" /> public TriggerBuilder WithIdentity(string name, string group) { key = new TriggerKey(name, group); return(this); }
public ITriggerConfigurator WithIdentity(TriggerKey key) { triggerBuilder.WithIdentity(key); return(this); }
/// <summary> /// Use a <see cref="TriggerKey" /> with the given name and default group to /// identify the Trigger. /// </summary> /// <remarks> /// <para>If none of the 'withIdentity' methods are set on the TriggerBuilder, /// then a random, unique TriggerKey will be generated.</para> /// </remarks> /// <param name="name">the name element for the Trigger's TriggerKey</param> /// <returns>the updated TriggerBuilder</returns> /// <seealso cref="TriggerKey" /> /// <seealso cref="ITrigger.Key" /> public TriggerBuilder WithIdentity(string name) { key = new TriggerKey(name, null); return(this); }
public IServiceCollectionTriggerConfigurator WithIdentity(TriggerKey key) { triggerBuilder.WithIdentity(key); return(this); }