private static int Main(string[] args) { // This bootstraps and runs the Jasper // application as defined by MyAppRegistry // until the executable is stopped return(JasperAgent.Run <MyAppRegistry>(args)); }
static int Main(string[] args) { return(JasperAgent.Run(args, _ => { _.Transports.LightweightListenerAt(2601); })); }
static int Main(string[] args) { return(JasperAgent.Run(args, _ => { _.MartenConnectionStringIs(Environment.GetEnvironmentVariable("marten_testing_database")); })); }
static int Main(string[] args) { return(JasperAgent.Run(args, _ => { _.MartenConnectionStringIs("Host=localhost;Port=5433;Database=postgres;Username=postgres;password=postgres"); _.Include <MartenBackedPersistence>(); })); }
static int Main(string[] args) { return(JasperAgent.Run(args, _ => { _.Logging.UseConsoleLogging = true; _.Transports.Lightweight.ListenOnPort(2601); })); }
private static int Main(string[] args) { return(JasperAgent.Run <JasperRegistry>(args, _ => { _.Transports.LightweightListenerAt(2600); // Using static routing rules to start _.Publish.Message <PingMessage>().To("tcp://localhost:2601"); _.Services.AddSingleton <IHostedService, PingSender>(); _.Hosting .UseUrls("http://localhost:5000") .UseKestrel(); })); }
static int Main(string[] args) { return(JasperAgent.Run(args, _ => { _.Logging.UseConsoleLogging = true; _.Transports.Lightweight.ListenOnPort(2600); // Using static routing rules to start _.Publish.Message <PingMessage>().To("tcp://localhost:2601"); _.Services.AddSingleton <IHostedService, PingSender>(); _.Http .UseUrls("http://localhost:5000") .UseKestrel(); })); }
public void smoke_test_calls(SourceType sourceType, string[] args) { if (sourceType == SourceType.JasperRegistry) { var registry = new JasperRegistry(); registry.Handlers.DisableConventionalDiscovery().IncludeType <MessageConsumer>(); JasperAgent.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(JasperAgent.Run <SubscriberApp>(args)); }
public static void Main(string[] args) { JasperAgent.Run <PublisherApp>(args); }
static int Main(string[] args) { // The application is configured through the MyApp class return(JasperAgent.Run <JasperConfig>(args)); }
private static int Main(string[] args) { return(JasperAgent.Run <ReceiverApp>(args)); }
public static int Main(string[] args) { return(JasperAgent.Run <PublisherApp>(args)); }
static int Main(string[] args) { return(JasperAgent.Run <SenderApp>(args)); }
private static int Main(string[] args) { return JasperAgent.Run<SenderApp>(args); }