でのルーティングの設定を拡張するためにどのように私は多くのWeb APIプロジェクトそこで、基本的Q:REBUS
のために共有されているREBUSコンフィグプロジェクトを持って、それは次のようになります
Web APIを1 ==>共有REBUSコンフィグ
Web APIを2 ==>共有REBUSコンフィグ
Web APIを3 ==>共有REBUSコンフィグ
私の質問は、私がWeb APIの3プロジェクトで&ハンドラいくつかのメッセージを持っている場合、どのように私は彼らのためにルーティングを設定することができ、ありますか?
私の現在の設定:
var autofacContainerAdapter = new AutofacContainerAdapter(container);
return Configure
.With(autofacContainerAdapter)
.Serialization(s => s.UseNewtonsoftJson())
.Routing(r =>
{
r.TypeBased()
.MapAssemblyOf<ProjectA.MessageA>(EnvironmentVariables.ServiceBusQueueName)
.MapAssemblyOf<ProjectB.MessageB>(EnvironmentVariables.ServiceBusQueueName);
})
.Sagas(s =>
{
s.StoreInSqlServer(EnvironmentVariables.ConnectionString, "Saga", "SagaIndex");
})
.Options(o =>
{
o.LogPipeline();
o.EnableDataBus().StoreInBlobStorage(EnvironmentVariables.AzureStorageConnectionString, EnvironmentVariables.BlobStorageContainerName);
o.EnableSagaAuditing().StoreInSqlServer(EnvironmentVariables.ConnectionString, "Snapshots");
})
.Logging(l =>
{
l.Use(new SentryLogFactory());
})
.Transport(t =>
{
t.UseAzureServiceBus(EnvironmentVariables.AzureServiceBusConnectionString, EnvironmentVariables.ServiceBusQueueName).AutomaticallyRenewPeekLock();
})
.Start();
2つ目のWeb APIと同じように、3番目のWeb APIのルーティングを設定できないのはなぜですか? – mookid8000
@ mookid8000私はいくつかのメッセージとハンドラは、3番目のWeb APIのために利用可能です –