Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Oct 30, 2024
1 parent bc8c41d commit 67b1fbe
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private async Task ConnectSignalR()

hubConnection = new HubConnectionBuilder()
.WithAutomaticReconnect()
.WithUrl($"{Configuration.GetServerAddress()}/app-hub?access_token={access_token}", options =>
.WithUrl($"{HttpClient.BaseAddress}app-hub?access_token={access_token}", options =>
{
options.Transports = Microsoft.AspNetCore.Http.Connections.HttpTransportType.WebSockets;
// Avoid enabling long polling or Server-Sent Events. Focus on resolving the issue with WebSockets instead.
Expand Down

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
migrationBuilder.InsertData(
table: "Users",
columns: new[] { "Id", "BirthDate", "Email", "FullName", "Gender", "Password", "PhoneNumber", "ProfileImageName", "UserName" },
values: new object[] { new Guid("8ff71671-a1d6-4f97-abb9-d87d7b47d6e7"), 1306790461440000000L, "[email protected]", "Boilerplate test account", 2, "123456", "+31684207362", null, "test" });
values: new object[] { new Guid("8ff71671-a1d6-4f97-abb9-d87d7b47d6e7"), 1306790461440000000L, "[email protected]", "Boilerplate test account", 0, "123456", "+31684207362", null, "test" });
}

/// <inheritdoc />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ partial class OfflineDbContextModelSnapshot : ModelSnapshot
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.7");
modelBuilder.HasAnnotation("ProductVersion", "9.0.0");

modelBuilder.Entity("Boilerplate.Shared.Dtos.Identity.UserDto", b =>
{
Expand Down Expand Up @@ -58,7 +58,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
BirthDate = 1306790461440000000L,
Email = "[email protected]",
FullName = "Boilerplate test account",
Gender = 2,
Gender = 0,
Password = "123456",
PhoneNumber = "+31684207362",
UserName = "test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,28 @@ protected virtual void Handle(Exception exception, Dictionary<string, object> pa
{
var isDevEnv = AppEnvironment.IsDev();

string exceptionMessage = (exception as KnownException)?.Message ??
using (var scope = Logger.BeginScope(parameters.ToDictionary(i => i.Key, i => i.Value ?? string.Empty)))
{
var exceptionMessage = exception.Message;
var innerException = exception.InnerException;

while (innerException is not null)
{
exceptionMessage += $"{Environment.NewLine}{innerException.Message}";
innerException = innerException.InnerException;
}

Logger.LogError(exception, exceptionMessage);
}

string displayableExceptionMessage = (exception as KnownException)?.Message ??
(isDevEnv ? exception.ToString() : Localizer[nameof(AppStrings.UnknownException)]);

MessageBoxService.Show(displayableExceptionMessage, Localizer[nameof(AppStrings.Error)]);

if (isDevEnv)
{
Debugger.Break();
}

using (var scope = Logger.BeginScope(parameters.ToDictionary(i => i.Key, i => i.Value ?? string.Empty)))
{
Logger.LogError(exception, exceptionMessage);
}

MessageBoxService.Show(exceptionMessage, Localizer[nameof(AppStrings.Error)]);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
BeforeBuildTasks;
$(ResolveStaticWebAssetsInputsDependsOn)
</ResolveStaticWebAssetsInputsDependsOn>
<UseNativeHttpHandler>false</UseNativeHttpHandler>
</PropertyGroup>

<PropertyGroup Condition="$(TargetFramework.Contains('-android')) and '$(Environment)' == 'Production'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"WebAppRender": {
"PrerenderEnabled": false,
"BlazorMode": "BlazorServer",
"BlazorMode_Comment": "Default value of Client.Core/appsettings.Production.json is BlazorAuto"
"BlazorMode_Comment": "BlazorServer, BlazorWebAssembly and BlazorAuto. Default value of Client.Core/appsettings.Production.json is BlazorAuto"
},
//#if (notification == true)
"AdsPushVapid_Comment": "https://github.com/adessoTurkey-dotNET/AdsPush",
Expand Down

0 comments on commit 67b1fbe

Please sign in to comment.