Lukaa
Lukaa
CC#
Created by brave on 5/27/2024 in #help
Difficulty in passing index
I think you have to pass the instance of Hud (hudInstance) to ShowUI method that you have
8 replies
CC#
Created by brave on 5/27/2024 in #help
Difficulty in passing index
I think the problem is that you don't do anything with hudInstance at all
8 replies
CC#
Created by brave on 5/27/2024 in #help
Difficulty in passing index
Need to see where you assigning the value of currentLevelForHUD
8 replies
CC#
Created by Lukaa on 4/30/2024 in #help
Proper way to do per user state management in Blazor with Identity
even with this I get cannot call method of a disposed class. but IdentityUserAccessor is scoped.. im confused
<div class="flex-body">
@if (Username == null)
{
<p1>Loading</p1>
}

else
{
<CascadingValue Value="@Username" Name="username">
<ManageNavMenu />
@Body
</CascadingValue>
}

</div>


@code {
protected string? Username;
private ApplicationUser User = default!;

[CascadingParameter]
private HttpContext HttpContext { get; set; } = default!;

protected override async void OnInitialized()
{
var user = await UserAccessor.GetRequiredUserAsync(HttpContext);
Username = await UserManager.GetUserNameAsync(user);
}
}
protected override async void OnInitialized()
{
var user = await UserAccessor.GetRequiredUserAsync(HttpContext);
Username = await UserManager.GetUserNameAsync(user);
}
<div class="flex-body">
@if (Username == null)
{
<p1>Loading</p1>
}

else
{
<CascadingValue Value="@Username" Name="username">
<ManageNavMenu />
@Body
</CascadingValue>
}

</div>


@code {
protected string? Username;
private ApplicationUser User = default!;

[CascadingParameter]
private HttpContext HttpContext { get; set; } = default!;

protected override async void OnInitialized()
{
var user = await UserAccessor.GetRequiredUserAsync(HttpContext);
Username = await UserManager.GetUserNameAsync(user);
}
}
protected override async void OnInitialized()
{
var user = await UserAccessor.GetRequiredUserAsync(HttpContext);
Username = await UserManager.GetUserNameAsync(user);
}
2 replies
CC#
Created by Lukaa on 4/27/2024 in #help
Docker + Blazor + MSSQL handshake error
Yes
12 replies
CC#
Created by Lukaa on 4/27/2024 in #help
Docker + Blazor + MSSQL handshake error
deleting trusted_connection=true fixed it
12 replies
CC#
Created by Lukaa on 4/27/2024 in #help
Docker + Blazor + MSSQL handshake error
Yea, now I set Encrypt=false and I get
Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication.
Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with 'kinit' and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication.
12 replies
CC#
Created by Lukaa on 4/27/2024 in #help
Docker + Blazor + MSSQL handshake error
Not much, not sure how to proceed
12 replies
CC#
Created by Lukaa on 4/27/2024 in #help
Docker + Blazor + MSSQL handshake error
No, setting it true results in Kerberos error
12 replies
CC#
Created by Lukaa on 4/27/2024 in #help
Docker + Blazor + MSSQL handshake error
ConnectionString :
"DefaultConnection": "Server=localhost,1433;Database=default;User=user;Password=p;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=false"
"DefaultConnection": "Server=localhost,1433;Database=default;User=user;Password=p;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=false"
12 replies
CC#
Created by driftx0 on 4/14/2024 in #help
ListView control not updating with data in Windows Forms application
8 replies
CC#
Created by driftx0 on 4/14/2024 in #help
ListView control not updating with data in Windows Forms application
it will block the UI tho, its synchronous
8 replies
CC#
Created by driftx0 on 4/14/2024 in #help
ListView control not updating with data in Windows Forms application
u need to update the listview in the ui thread. something like
Program.Invoke((MethodInvoker)(() =>
{
Program.UpdateDataListView(AdvancedDataListResult);
}));
Program.Invoke((MethodInvoker)(() =>
{
Program.UpdateDataListView(AdvancedDataListResult);
}));
8 replies
CC#
Created by Pete. on 4/14/2024 in #help
Architecture problem
do you use cpp on pi? if so you dont need a webapi, use RPC
34 replies
CC#
Created by yonog1 on 2/24/2024 in #help
Service for saving images from clipboard
10 replies
CC#
Created by br4kejet on 2/24/2024 in #help
Adding cmake project to VS solution?
You just need to write a script that would clone the repo, compile and copy the DLL files, I think basic googling how to achieve this independently through command line will get you to the solution
4 replies
CC#
Created by br4kejet on 2/24/2024 in #help
Adding cmake project to VS solution?
How about a PowerShell script that automates all of this?
4 replies
CC#
Created by yonog1 on 2/24/2024 in #help
Service for saving images from clipboard
Ah you wanna listen to changes , then I believe you need to use winapi
10 replies
CC#
Created by yonog1 on 2/24/2024 in #help
Service for saving images from clipboard
10 replies