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())); }
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(); }
public void Run() { pipeLine.Execute(); }