/// <summary>
 /// Gets the types representing the steps, inserting a population step before the existing
 /// validation step.
 /// </summary>
 /// <returns></returns>
 public Type[] GetSteps()
 {
     return(_next.GetSteps()
            .InsertBefore(
                typeof(PersistEntityModel <, , ,>),
                typeof(PopulateIdFromUniqueIdOnPeople <, , ,>))
            .ToArray());
 }
        public PutPipeline <TResourceModel, TEntityModel> CreatePutPipeline <TResourceModel, TEntityModel>()
            where TEntityModel : class, IHasIdentifier, new()
            where TResourceModel : IHasETag
        {
            var stepTypes = putPipelineStepsProvider.GetSteps();
            var steps     = ResolvePipelineSteps <PutContext <TResourceModel, TEntityModel>, PutResult, TResourceModel, TEntityModel>(stepTypes);

            return(new PutPipeline <TResourceModel, TEntityModel>(steps));
        }
Exemple #3
0
 public Type[] GetSteps()
 {
     return(_next.GetSteps()
            .InsertAtHead(typeof(SetAuthorizationContextForPut <, , ,>))
            .ToArray());
 }