Browse Source

Merge branch 'servicebus' into dev

# Conflicts:
#	docker-compose.override.yml
#	src/Services/Catalog/Catalog.API/CatalogSettings.cs
#	src/Services/Catalog/Catalog.API/settings.json
pull/235/head
Christian Arenas 7 years ago
parent
commit
39e69ee4e0
10 changed files with 12 additions and 19 deletions
  1. +3
    -3
      docker-compose.override.yml
  2. +3
    -3
      docker-compose.prod.yml
  3. +0
    -2
      src/Services/Basket/Basket.API/BasketSettings.cs
  4. +1
    -1
      src/Services/Basket/Basket.API/Startup.cs
  5. +1
    -2
      src/Services/Basket/Basket.API/appsettings.json
  6. +0
    -2
      src/Services/Catalog/Catalog.API/CatalogSettings.cs
  7. +1
    -1
      src/Services/Catalog/Catalog.API/Startup.cs
  8. +1
    -2
      src/Services/Catalog/Catalog.API/settings.json
  9. +1
    -1
      src/Services/Ordering/Ordering.API/Startup.cs
  10. +1
    -2
      src/Services/Ordering/Ordering.API/settings.json

+ 3
- 3
docker-compose.override.yml View File

@ -14,7 +14,7 @@ services:
- ASPNETCORE_URLS=http://0.0.0.0:80
- ConnectionString=${ESHOP_AZURE_REDIS:-basket.data}
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
- EventBusConnection=rabbitmq
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
ports:
- "5103:80"
@ -24,7 +24,7 @@ services:
- ASPNETCORE_URLS=http://0.0.0.0:80
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
- PicBaseUrl=${ESHOP_AZURE_STORAGE_ACCOUNT:-http://localhost:5101/api/v1/pic/} #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
- EventBusConnection=rabbitmq
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
ports:
- "5101:80"
@ -45,7 +45,7 @@ services:
- ASPNETCORE_URLS=http://0.0.0.0:80
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
- identityUrl=http://identity.api #Local: You need to open your local dev-machine firewall at range 5100-5105. at range 5100-5105.
- EventBusConnection=rabbitmq
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
ports:
- "5102:80"


+ 3
- 3
docker-compose.prod.yml View File

@ -19,7 +19,7 @@ services:
- ASPNETCORE_URLS=http://0.0.0.0:80
- ConnectionString=${ESHOP_AZURE_REDIS:-basket.data}
- identityUrl=http://identity.api #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
- EventBusConnection=rabbitmq
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
ports:
- "5103:80"
@ -29,7 +29,7 @@ services:
- ASPNETCORE_URLS=http://0.0.0.0:80
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word
- ExternalCatalogBaseUrl=http://${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}:5101 #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
- EventBusConnection=rabbitmq
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
ports:
- "5101:80"
@ -50,7 +50,7 @@ services:
- ASPNETCORE_URLS=http://0.0.0.0:80
- ConnectionString=Server=sql.data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word
- identityUrl=http://identity.api #Local: You need to open your host's firewall at range 5100-5105. at range 5100-5105.
- EventBusConnection=rabbitmq
- EventBusConnection=${ESHOP_AZURE_SERVICE_BUS:-rabbitmq}
ports:
- "5102:80"


+ 0
- 2
src/Services/Basket/Basket.API/BasketSettings.cs View File

@ -5,7 +5,5 @@
public string ConnectionString { get; set; }
public string EventBusConnection { get; set; }
public string ServiceBusConnectionString { get; set; }
}
}

+ 1
- 1
src/Services/Basket/Basket.API/Startup.cs View File

@ -77,7 +77,7 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API
var settings = sp.GetRequiredService<IOptions<BasketSettings>>().Value;
var logger = sp.GetRequiredService<ILogger<DefaultServiceBusPersisterConnection>>();
var serviceBusConnection = new ServiceBusConnectionStringBuilder(settings.ServiceBusConnectionString);
var serviceBusConnection = new ServiceBusConnectionStringBuilder(settings.EventBusConnection);
return new DefaultServiceBusPersisterConnection(serviceBusConnection, logger);
});


+ 1
- 2
src/Services/Basket/Basket.API/appsettings.json View File

@ -9,7 +9,6 @@
},
"IdentityUrl": "http://localhost:5105",
"ConnectionString": "127.0.0.1",
"ServiceBusConnectionString": "Endpoint=sb://eshopsbez55a72p6wm62.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=oA6WpfCfCbScZbQa/DBOLfwl6oi5ezPsCYL7QsTb4PY=;EntityPath=eshop_event_bus",
"AzureServiceBusEnabled": "true",
"AzureServiceBusEnabled": false,
"SubscriptionClientName": "Basket"
}

+ 0
- 2
src/Services/Catalog/Catalog.API/CatalogSettings.cs View File

@ -6,8 +6,6 @@
public string EventBusConnection { get; set; }
public string ServiceBusConnectionString { get; set; }
public bool AzureStorageEnabled { get; set; }
}
}

+ 1
- 1
src/Services/Catalog/Catalog.API/Startup.cs View File

@ -118,7 +118,7 @@
var settings = sp.GetRequiredService<IOptions<CatalogSettings>>().Value;
var logger = sp.GetRequiredService<ILogger<DefaultServiceBusPersisterConnection>>();
var serviceBusConnection = new ServiceBusConnectionStringBuilder(settings.ServiceBusConnectionString);
var serviceBusConnection = new ServiceBusConnectionStringBuilder(settings.EventBusConnection);
return new DefaultServiceBusPersisterConnection(serviceBusConnection, logger);
});


+ 1
- 2
src/Services/Catalog/Catalog.API/settings.json View File

@ -9,8 +9,7 @@
"Microsoft": "Information"
}
},
"ServiceBusConnectionString": "Endpoint=sb://eshopsbez55a72p6wm62.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=oA6WpfCfCbScZbQa/DBOLfwl6oi5ezPsCYL7QsTb4PY=;EntityPath=eshop_event_bus",
"AzureServiceBusEnabled": "true",
"AzureServiceBusEnabled": false,
"AzureStorageEnabled": false,
"SubscriptionClientName": "Catalog"
}

+ 1
- 1
src/Services/Ordering/Ordering.API/Startup.cs View File

@ -121,7 +121,7 @@
{
var logger = sp.GetRequiredService<ILogger<DefaultServiceBusPersisterConnection>>();
var serviceBusConnectionString = Configuration["ServiceBusConnectionString"];
var serviceBusConnectionString = Configuration["EventBusConnection"];
var serviceBusConnection = new ServiceBusConnectionStringBuilder(serviceBusConnectionString);
return new DefaultServiceBusPersisterConnection(serviceBusConnection, logger);


+ 1
- 2
src/Services/Ordering/Ordering.API/settings.json View File

@ -9,7 +9,6 @@
"Microsoft": "Information"
}
},
"ServiceBusConnectionString": "Endpoint=sb://eshopsbez55a72p6wm62.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=oA6WpfCfCbScZbQa/DBOLfwl6oi5ezPsCYL7QsTb4PY=;EntityPath=eshop_event_bus",
"AzureServiceBusEnabled": "true",
"AzureServiceBusEnabled": false,
"SubscriptionClientName": "Ordering"
}

Loading…
Cancel
Save