Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 03 2019 12:11
    dotnet-maestro[bot] commented #1813
  • Jun 03 2019 12:11

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • Jun 03 2019 12:11

    dotnet-maestro[bot] on master

    Update dependencies from https:… (compare)

  • Jun 03 2019 12:11
    dotnet-maestro[bot] closed #1813
  • Jun 03 2019 12:06
    dotnet-maestro[bot] opened #1813
  • Jun 03 2019 12:06

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    Update dependencies from https:… (compare)

  • Jun 03 2019 12:05

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • May 30 2019 11:54
    jenergm commented #279
  • May 29 2019 14:59
    tmenier commented #1492
  • May 29 2019 04:58
    danroth27 updated the wiki
  • May 28 2019 14:25
    lewing commented #1807
  • May 27 2019 19:13
    matheusjulio96 commented #1652
  • May 27 2019 13:30
    springy76 commented #306
  • May 27 2019 13:13
    SQL-MisterMagoo commented #306
  • May 27 2019 13:07
    springy76 commented #306
  • May 27 2019 13:06
    springy76 commented #306
  • May 27 2019 12:24
    SQL-MisterMagoo commented #306
  • May 27 2019 12:20
    springy76 commented #306
  • May 27 2019 12:10
    dotnet-maestro[bot] commented #1812
  • May 27 2019 12:10

    dotnet-maestro[bot] on darc-master-e3474f54-f92f-4c3f-b116-ed9bdfe9754d

    (compare)

Mario van Zeist
@MariovanZeist
But having the ability to show a different page instead of a default loading one seems good
Peter Morris
@mrpmorris
Now compare it to this
https://youtu.be/85ASKcfjndE
Note the load time is very slow because I made the DLL large :)
Haytam Zanid
@zHaytam
But you can't interact with it right?
Peter Morris
@mrpmorris
Correct
Mario van Zeist
@MariovanZeist
Can you link the initial video with the loading?
Haytam Zanid
@zHaytam
It can also trick Search Engines I think
Mario van Zeist
@MariovanZeist
o w8, nvm :)
Peter Morris
@mrpmorris
The standard screen just says "Loading..."
This renders whichever page you request, and keeps it inactive until loaded
Peter Morris
@mrpmorris
Well, I thought it was impressive :)
SQL-MisterMagoo
@SQL-MisterMagoo

The built in way just shows a "Loading" page. The approach I do renders the page on the server and then shows that until the DLLs download

Not if you use WebAssemblyPrerendered - that's what it's for

Peter Morris
@mrpmorris
In .NET6, but this is 5
SQL-MisterMagoo
@SQL-MisterMagoo
Well, who uses that old thing?
Peter Morris
@mrpmorris
Anyone on Azure :)
Mario van Zeist
@MariovanZeist
@mrpmorris I like it
SQL-MisterMagoo
@SQL-MisterMagoo
Anyway, I'm pretty sure it is available in .NET5 - the docs were written for NET5.0
Mario van Zeist
@MariovanZeist
Have you guys allready migrated to NET6?
Peter Morris
@mrpmorris
@SQL-MisterMagoo I just created a new ASP.NET hosted WASM app in .NET6, and it still shows the Loading... page
Mario van Zeist
@MariovanZeist
I migrated 1, and came off impressed, just curiuous about other peoples findings
SQL-MisterMagoo
@SQL-MisterMagoo
You have to read the docs and make some changes - it's not automatic
Those instructions can be a little off depending on exactly which version you use, but it does work
Peter Morris
@mrpmorris
It should be the default, or at least an option
SQL-MisterMagoo
@SQL-MisterMagoo
Yeah, but who has time to maintain templates
kumudumushi-dev
@kumudumushi-dev
hey guys maybe you have idea with this one .
image.png
Mark Stega
@markstega:matrix.org
[m]

Seeking architectural ideas/Best practices

I have a legacy system composed of 8 multithread processes that are .Net 4.8, running in Windows services and a Silverlight client hosted in an IIS application.

The Silverlight client is being replaced by a Blazor client which is .Net6 server hosted and in test deployment now.

Once the SL client is deprecated later this year I can do whatever I want with the 8 external processes. I certainly want to move them to .Net6 which should be a trivial exercise.

I can either let them be deployed as windows services as they are now. An alternative that I have considered is just to host them (so to speak) as part of the .Net6 server. I don't really need them as services and only one of them is responsible for data handling for the client. That one I really want to move into the server as it currently is addressed by a 'proxy' api implemented using GRPC that calls the current WCF interface of the data server.

So i am looking for opinions on where you would host the remaining 7 processes.

(And sorry for the length of this post).

Haytam Zanid
@zHaytam
What do the 7 processes do?
Mark Stega
@markstega:matrix.org
[m]
The 7 processes are such things as a communication server responsible for outgoing fax & email messages, 3 interface servers that communicate with outside systems using various healthcare related protocols, a report server that creates both performance and operational reports, etc.
Alberto Passalacqua
@AlbertoPa
npgsql for RC1 is out :-)
tag5
@tag5
Hello, thanks all for your yesterday answers.
I am trying to inject (by constructor dependency injection) NavigationManager inside an AuthorizationHandler. This is a blazor server project.
When i try to get current uri i get an exception. How can i solve this ? Thanks
Alberto Passalacqua
@AlbertoPa
get the response from the auth handler from the service in the component and then call NavigationManager based on the response in the component
tag5
@tag5

Here is what i want to do:

@attribute [MyCustomAttribute(current_url)]

-> How can i get current url ? (yesterday i wanted to extract a parameter but i am wondering if i can access to full url instead)

tag5
@tag5

I have managed to do this:

@page "/customers/{CustomerId}"

<AuthorizeView Policy="MyPolicy" Resource="@ CustomerId">

It works fine, but how can i do this:
@authorize [Authorize(Policy="MyPolicy")] <- How can i pass Resource argument ?

Alberto Passalacqua
@AlbertoPa
nevermind, I misread...
I think we concluded yesterday that a custom attribute wasn't going to work :-)
that's why we suggested an alternative with services
Alberto Passalacqua
@AlbertoPa
Does secrets management work for you in a VS 2022 preview and hosted blazor? :-?
it seems not to use the connection string I put in secrets.json and the UserSecretId is set :-?
Alberto Passalacqua
@AlbertoPa
fixed by adding this to Program.cs but
var builder = WebApplication.CreateBuilder(args);

// Enable user secrets in development
builder.WebHost.ConfigureAppConfiguration((hostContext, builder) =>
{
    if (hostContext.HostingEnvironment.IsDevelopment())
    {
        builder.AddUserSecrets<Program>();
    }
});
but I definitely did not need that in .net 5 :-?
SQL-MisterMagoo
@SQL-MisterMagoo
@tag5 I haven't read all your policy requirements, but maybe this conversation will point you towards passing resource values to a policy. Check out @optimizasean posts before and after as they added some claims code as well.
:point_up: July 18, 2021 1:58 AM
Alberto Passalacqua
@AlbertoPa
I think the challenge is that he wants to pass the resource to the attribute 🤔
Mario van Zeist
@MariovanZeist
wvmstr
@wvmstr
@AlbertoPa I had user secrets setup when this app was still at net 5. Since it has been migrated to net 6. Moved my connection string from appsetting.json to user secrets . That seems to work. I do not have anything builder.AddUserSecrets anywhere.
Haytam Zanid
@zHaytam
I wonder if some day we can see Blazor rendering in a Canvas (even a C# one) instead of the DOM
The same as what Google did in their Google Docs app
Ivan Josipovic
@IvanJosipovic