-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb85e9d
commit 05146bb
Showing
25 changed files
with
6 additions
and
855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,46 +248,6 @@ | |
} | ||
} | ||
``` | ||
|
||
- Use Azure Event Grid: | ||
```js | ||
"MessageBroker": { | ||
"Provider": "AzureEventGrid", | ||
"AzureEventGrid": { | ||
"DomainEndpoint": "https://xxx.xxx-1.eventgrid.azure.net/api/events", | ||
"DomainKey": "xxxx", | ||
"Topics": { | ||
"FileUploadedEvent": "classifiedadds_fileuploaded", | ||
"FileDeletedEvent": "classifiedadds_filedeleted" | ||
"EmailMessageCreatedEvent": "classifiedadds_emailcreated", | ||
"SmsMessageCreatedEvent": "classifiedadds_smscreated" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
- Use Azure Event Hubs: | ||
```js | ||
"MessageBroker": { | ||
"Provider": "AzureEventHub", | ||
"AzureEventHub": { | ||
"ConnectionString": "Endpoint=sb://xxx.servicebus.windows.net/;SharedAccessKeyName=xxx;SharedAccessKey=xxx", | ||
"Hubs": { | ||
"FileUploadedEvent": "classifiedadds_fileuploaded", | ||
"FileDeletedEvent": "classifiedadds_filedeleted", | ||
"EmailMessageCreatedEvent": "classifiedadds_emailcreated", | ||
"SmsMessageCreatedEvent": "classifiedadds_smscreated" | ||
}, | ||
"StorageConnectionString": "DefaultEndpointsProtocol=https;AccountName=xxx;AccountKey=xxx;EndpointSuffix=core.windows.net", | ||
"StorageContainerNames": { | ||
"FileUploadedEvent": "eventhub-fileuploaded", | ||
"FileDeletedEvent": "eventhub-filedeleted", | ||
"EmailMessageCreatedEvent": "eventhub-emailcreated", | ||
"SmsMessageCreatedEvent": "eventhub-smscreated" | ||
} | ||
} | ||
} | ||
``` | ||
</details> | ||
|
||
<details> | ||
|
@@ -477,31 +437,6 @@ | |
} | ||
}, | ||
``` | ||
- Use AppMetrics: | ||
```js | ||
"Monitoring": { | ||
"AppMetrics": { | ||
"IsEnabled": true, | ||
"MetricsOptions": { | ||
"DefaultContextLabel": "ClassifiedAds.WebAPI", | ||
"Enabled": true, | ||
"ReportingEnabled": true | ||
}, | ||
"MetricsWebTrackingOptions": { | ||
"ApdexTrackingEnabled": true, | ||
"ApdexTSeconds": 0.1, | ||
"IgnoredHttpStatusCodes": [ 404 ], | ||
"IgnoredRoutesRegexPatterns": [], | ||
"OAuth2TrackingEnabled": true | ||
}, | ||
"MetricEndpointsOptions": { | ||
"MetricsEndpointEnabled": true, | ||
"MetricsTextEndpointEnabled": true, | ||
"EnvironmentInfoEndpointEnabled": true | ||
} | ||
} | ||
}, | ||
``` | ||
- Use Both: | ||
```js | ||
"Monitoring": { | ||
|
@@ -518,26 +453,6 @@ | |
"IsEnabled": true, | ||
"InstrumentationKey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | ||
"EnableSqlCommandTextInstrumentation": true | ||
}, | ||
"AppMetrics": { | ||
"IsEnabled": true, | ||
"MetricsOptions": { | ||
"DefaultContextLabel": "ClassifiedAds.WebAPI", | ||
"Enabled": true, | ||
"ReportingEnabled": true | ||
}, | ||
"MetricsWebTrackingOptions": { | ||
"ApdexTrackingEnabled": true, | ||
"ApdexTSeconds": 0.1, | ||
"IgnoredHttpStatusCodes": [ 404 ], | ||
"IgnoredRoutesRegexPatterns": [], | ||
"OAuth2TrackingEnabled": true | ||
}, | ||
"MetricEndpointsOptions": { | ||
"MetricsEndpointEnabled": true, | ||
"MetricsTextEndpointEnabled": true, | ||
"EnvironmentInfoEndpointEnabled": true | ||
} | ||
} | ||
}, | ||
``` | ||
|
@@ -783,18 +698,16 @@ | |
- Add Migrations if you haven't done on previous steps: | ||
+ Install **dotnet-ef** cli: | ||
``` | ||
dotnet tool install --global dotnet-ef --version="5.0" | ||
dotnet tool install --global dotnet-ef --version="8.0" | ||
``` | ||
+ Navigate to [ClassifiedAds.Migrator](/src/Monolith/ClassifiedAds.Migrator/) and run these commands: | ||
``` | ||
dotnet ef migrations add Init --context AdsDbContext -o Migrations/AdsDb | ||
dotnet ef migrations add Init --context ConfigurationDbContext -o Migrations/ConfigurationDb | ||
dotnet ef migrations add Init --context PersistedGrantDbContext -o Migrations/PersistedGrantDb | ||
``` | ||
- Navigate to [Monolith](/src/Monolith/) and run: | ||
``` | ||
docker-compose build | ||
docker-compose up | ||
docker compose build | ||
docker compose up | ||
``` | ||
- Open Web MVC Home Page at: http://host.docker.internal:9003 | ||
|
@@ -825,9 +738,6 @@ | |
"WebAPI": { | ||
"Endpoint": "https://localhost:44312" | ||
}, | ||
"GraphQL": { | ||
"Endpoint": "https://localhost:44392/graphql" | ||
}, | ||
"Login": { | ||
"UserName": "[email protected]", | ||
"Password": "v*7Un8b4rcN@<-RN", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
...ommon/ClassifiedAds.Infrastructure/MessageBrokers/AzureEventGrid/AzureEventGridOptions.cs
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
...Common/ClassifiedAds.Infrastructure/MessageBrokers/AzureEventGrid/AzureEventGridSender.cs
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
.../Common/ClassifiedAds.Infrastructure/MessageBrokers/AzureEventHub/AzureEventHubOptions.cs
This file was deleted.
Oops, something went wrong.
75 changes: 0 additions & 75 deletions
75
...Common/ClassifiedAds.Infrastructure/MessageBrokers/AzureEventHub/AzureEventHubReceiver.cs
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
...s/Common/ClassifiedAds.Infrastructure/MessageBrokers/AzureEventHub/AzureEventHubSender.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.