Пример #1
0
            public void TestMethod1()
            {
                var loginPipeline = new PipeLine <LogInMessage>();

                loginPipeline.Register(new CheckUserSuppliedCredentials());

                loginPipeline.Execute(new LogInMessage());
                // .Register(new CheckApiKeyIsEnabledForClient(new ClientDetailsDao()))
                // .Register(new IsUserLoginAllowed())
                // .Register(new ValidateAgainstMembershipApi(new MembershipService()))
                // .Register(new GetUserDetails(new UserDetailsDao()));
                //.Register(new PublishUserLoggedInEvent(new GetBus()));
            }
Пример #2
0
        static void Main(string[] args)
        {
            var pipeline = new PipeLine <DataLoaderContext>()
                           .AddStep(new LoadDataStep())
                           .AddStep(new SendMessageStep());

            var context = new DataLoaderContext {
                CorrelationContextId = Guid.NewGuid()
            };

            var result = pipeline.Execute(context);

            Console.ReadKey();
        }
Пример #3
0
 public void Run()
 {
     pipeLine.Execute();
 }