mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.8 KiB
60 lines
1.8 KiB
namespace DistDemoApp;
|
|
|
|
public class DistEventScenarioProfile
|
|
{
|
|
public string Name { get; set; } = "default";
|
|
|
|
public string AnonymousOnlyEventName { get; set; } = "dist-demo.anonymous-only";
|
|
|
|
public string AnonymousOnlyMessage { get; set; } = "hello-anonymous";
|
|
|
|
public int TypedFromTypedValue { get; set; } = 7;
|
|
|
|
public int TypedFromAnonymousValue { get; set; } = 11;
|
|
|
|
public bool EnableTypedFromTypedScenario { get; set; } = true;
|
|
|
|
public bool EnableTypedFromAnonymousScenario { get; set; } = true;
|
|
|
|
public bool EnableAnonymousOnlyScenario { get; set; } = true;
|
|
|
|
public bool OnUnitOfWorkComplete { get; set; } = true;
|
|
|
|
public bool UseOutbox { get; set; } = true;
|
|
|
|
public bool UseUnitOfWork { get; set; } = true;
|
|
|
|
public int WarmupDelayMs { get; set; } = 1500;
|
|
|
|
public int TimeoutSeconds { get; set; } = 60;
|
|
|
|
public static DistEventScenarioProfile Default()
|
|
{
|
|
return new DistEventScenarioProfile();
|
|
}
|
|
|
|
public static DistEventScenarioProfile DaprWeb()
|
|
{
|
|
return new DistEventScenarioProfile
|
|
{
|
|
Name = "dapr-web",
|
|
AnonymousOnlyEventName = "dist-demo.dapr.anonymous-only",
|
|
AnonymousOnlyMessage = "hello-dapr-web",
|
|
EnableTypedFromTypedScenario = false,
|
|
EnableTypedFromAnonymousScenario = false,
|
|
EnableAnonymousOnlyScenario = false
|
|
};
|
|
}
|
|
|
|
public static DistEventScenarioProfile AzureEmulator()
|
|
{
|
|
return new DistEventScenarioProfile
|
|
{
|
|
Name = "azure-emulator",
|
|
AnonymousOnlyEventName = "DistDemoApp.Azure.AnonymousOnly",
|
|
AnonymousOnlyMessage = "hello-azure-emulator",
|
|
TypedFromTypedValue = 21,
|
|
TypedFromAnonymousValue = 34
|
|
};
|
|
}
|
|
}
|
|
|