コード例 #1
0
        /// <summary>
        /// Instructs the pipeline to register this step before the <paramref name="id" /> one.
        /// </summary>
        public void InsertBefore(string id)
        {
            if (Befores == null)
            {
                Befores = new List <Dependency>();
            }

            Befores.Add(new Dependency(StepId, id, Dependency.DependencyDirection.Before, true));
        }
コード例 #2
0
ファイル: RegisterStep.cs プロジェクト: wzl-bxg/NServiceBus
        /// <summary>
        /// Instructs the pipeline to register this step before the <paramref name="id" /> one.
        /// </summary>
        public void InsertBefore(string id)
        {
            Guard.AgainstNullAndEmpty(nameof(id), id);

            if (Befores == null)
            {
                Befores = new List <Dependency>();
            }

            Befores.Add(new Dependency(StepId, id, Dependency.DependencyDirection.Before, true));
        }
コード例 #3
0
        /// <summary>
        /// Instructs the pipeline to register this step before the <paramref name="id"/> one. If the <paramref name="id"/> does not exist, this condition is ignored.
        /// </summary>
        /// <param name="id">The unique identifier of the step that we want to insert before.</param>
        public void InsertBeforeIfExists(string id)
        {
            if (String.IsNullOrEmpty(id))
            {
                throw new ArgumentNullException("id");
            }

            if (Befores == null)
            {
                Befores = new List <Dependency>();
            }

            Befores.Add(new Dependency(id, false));
        }