private static int Main(string[] args) { // This bootstraps and runs the Jasper // application as defined by MyAppRegistry // until the executable is stopped return(JasperHost.Run <MyAppRegistry>(args)); }
static int Main(string[] args) { return(JasperHost.Run(args, _ => { _.Publish.AllMessagesTo("durable://localhost:8567"); _.Transports.LightweightListenerAt(8568); })); }
public void smoke_test_calls(string commandLine) { var registry = new JasperRegistry(); registry.Settings.PersistMessagesWithSqlServer(Servers.SqlServerConnectionString); var args = commandLine.Split(' '); JasperHost.Run(registry, args).ShouldBe(0); }
public void smoke_test_calls(string commandLine) { var registry = new JasperRegistry(); registry.MartenConnectionStringIs(Servers.PostgresConnectionString); registry.Include <MartenBackedPersistence>(); var args = commandLine.Split(' '); JasperHost.Run(registry, args).ShouldBe(0); }
// You may need to enable C# 7.1 or higher for your project private static Task <int> Main(string[] args) { // This bootstraps and runs the Jasper // application as defined by MyAppOptions // until the executable is stopped return(JasperHost.Run <MyAppOptions>(args)); // The code above is shorthand for the following: /* * return Host * .CreateDefaultBuilder() * .UseJasper<MyAppOptions>() * .RunOaktonCommands(args); */ }
private static int Main(string[] args) { return(JasperHost.Run(args, _ => { _.Transports.LightweightListenerAt(2600); // Using static routing rules to start _.Publish.Message <PingMessage>().To("tcp://localhost:2601"); _.Services.AddSingleton <IHostedService, PingSender>(); _.Hosting(x => x.UseUrls("http://localhost:5000") .UseKestrel()); })); }
public void smoke_test_calls(SourceType sourceType, string[] args) { if (sourceType == SourceType.JasperRegistry) { var registry = new JasperRegistry(GetType().Assembly.GetName().Name); registry.Handlers.DisableConventionalDiscovery().IncludeType <MessageConsumer>(); JasperHost.Run(registry, args).ShouldBe(0); } else { var builder = new WebHostBuilder(); builder.UseStartup <EmptyStartup>().UseJasper(r => { r.Handlers.DisableConventionalDiscovery().IncludeType <MessageConsumer>(); }) .RunJasper(args).ShouldBe(0); } }
private static int Main(string[] args) { return(JasperHost.Run <ReceiverApp>(args)); }
static int Main(string[] args) { // The application is configured through the MyApp clas return(JasperHost.Run <JasperConfig>(args)); }
private static int Main(string[] args) { return(JasperHost.Run(args, _ => { _.Transports.LightweightListenerAt(2601); })); }
private static int Main(string[] args) { return(JasperHost.Run <SubscriberApp>(args)); }
public static int Main(string[] args) { return(JasperHost.Run <PublisherApp>(args)); }