Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 07 13:24
    clairernovotny unassigned #7
  • May 07 13:24
    BillWagner added as member
  • May 07 13:24
    BillWagner removed as member
  • May 07 13:22
    clairernovotny closed #182
  • May 07 13:22
    clairernovotny commented #182
  • May 07 13:21
    clairernovotny closed #192
  • May 07 13:21
    clairernovotny commented #192
  • May 04 08:11
    MarcoRossignoli opened #192
  • Apr 30 15:40
    NextTurn closed #154
  • Apr 30 02:54
    NextTurn commented #191
  • Apr 29 15:53

    clairernovotny on master

    Fix broken links Split from dot… Merge pull request #191 from Ne… (compare)

  • Apr 29 15:53
    clairernovotny closed #191
  • Apr 29 15:53
    clairernovotny commented #191
  • Apr 29 15:39
    NextTurn opened #191
  • Apr 29 14:06

    clairernovotny on master

    Fix broken links Split from #154 Merge pull request #190 from Ne… (compare)

  • Apr 29 14:06
    clairernovotny closed #190
  • Apr 29 14:06

    clairernovotny on master

    Fix broken links Split from #154 Merge pull request #189 from Ne… (compare)

  • Apr 29 14:06
    clairernovotny closed #189
  • Apr 16 15:55
    NextTurn opened #190
  • Apr 15 15:55
    NextTurn opened #189
TeBeCo
@tebeco
made a gist ~5month ago as it was a frequent question
there's probably good article on Andrew Lock's blog :)
William
@alentor_gitlab
Awesome gist, thank you once more <3
Ygal Bellaiche
@ygalbel
We have a kind of dll hell, maybe someone can help.
ystem.TypeLoadException: Method 'AuthenticateAsync' in type 'Microsoft.AspNetCore.Http.Authentication.Internal.DefaultAuthenticationManager' from assembly 'Microsoft.AspNetCore.Http, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation.
We are trying to load Microsoft.AspNetCore.Http.Authentication.Internal.DefaultAuthenticationManager in reflection
TeBeCo
@tebeco
Internal
Ygal Bellaiche
@ygalbel
@tebeco What do you mean?
TeBeCo
@tebeco
I mean that the class you are trying to Manipulate is explicitly in a namespace that mark it as Internal
internal for the AspNetCore team
these could sometime be called "pubternal" because their scope may be "public", nobody is supposed to use it, and should expect crash / exception / missbehave
a big part of "pubternal" API were removed from 2.x to 3.x to avoid exactly this
further more, you seem to use 2.2.x version which is "not supported" anymore
there's 2 LTS + 1 current
LTS : 2.1.x and 3.1.x
current : 3.1.x
Jon Gosling
@eurogos_twitter
Hi, I'm looking for as place where I can ask a question about EF Core / Asp.Net Identity... is this here?
TeBeCo
@tebeco
@ygalbel on top of that
did you check the Github repository on this class on the tag for 2.2.x ?
namespace Microsoft.AspNetCore.Http.Authentication.Internal
{
    [Obsolete("This is obsolete and will be removed in a future version. See https://go.microsoft.com/fwlink/?linkid=845470.")]
    public class DefaultAuthenticationManager : AuthenticationManager
    {
you're supposed to be warn about that ^^, given the fact you are using reflection you might not see it
Ygal Bellaiche
@ygalbel
OK I see. I will check how to avoid this.
Thanks
Daniel Hughes
@trampster
I'm using the .net 5 preview on linux via the snap package. However I'm on preview 7 and would like to update to preview 8 now that it's out. However the Ubuntu update manager doesn't think there is any update for it.
Has the snap package not been updated yet?
tm1k
@tm1k
I have a problem with a combobox where I set the content by a datatemplate that consists of FormulaControl elements from wpf-math. When the combobox is dropped down, the entries are empty (only some pt high), but when I select one, it shows the formula correctly. Is there anything I can do to let it prerender the items?
Darren R. Starr
@darrenstarr
Does anyone know if there's a happy place to discuss WinUI / UWP topics? Or is this the place?
TeBeCo
@tebeco
probably on both discord server
"c#" and "dotnet evolution"
Panos Athanasiou
@panoukos41

Ef-core related question. Is it possible to have one to many relationships for multiple objects?
I have an object NodeGroup that has it's own name id etc. Objects that define the interface INodeGrouped have a property NodeGroupId.
I have two different objects implement this interface, and a list in NodeGroup'List<INodeGrouped> Nodes`.
Will this relationship work?

builder.HasMany<INode>(x => x.Nodes)
    .WithOne(x => x.NodeGroup!)
    .HasForeignKey(x => x.NodeGroupId);

Somthing like this!

Darren R. Starr
@darrenstarr

Not sure where else to ask, but I'm trying to make a LINQ statement that operates on an IEnumerable<> that should take 3 values from the list at a time and create a new object from each into a new enumerable. The code I have which works is:

var pathSegmentCollection1 = new PathSegmentCollection();
for (var i = 1; i < ScaledCurve.Count; i += 3)
{
    pathSegmentCollection1.Add(new BezierSegment
    {
        Point1 = ScaledCurve[i],
        Point2 = ScaledCurve[i + 1],
        Point3 = ScaledCurve[i + 2]
    });
}

Where ScaledCurve is Windows.UI.Xaml.Media.PointCollection

Is there a way where I can

ScaledCurve.Skip(1).Select(... new BezierSegment from 3 values...)
Stephen A. Imhoff
@Clockwork-Muse
@darrenstarr - You're looking for some sort of Chunk operation, which isn't present in the base libraries (there's at least one proposal). I believe there's third-party libraries that already do, however.
Darren R. Starr
@darrenstarr
@Clockwork-Muse Thanks, that's what I was looking for. I hope it shows up someday :)
Daniel Hughes
@trampster
Where can I find the source code for StringBuilder
TeBeCo
@tebeco
dotnet/runtime
Jason Priddy
@BatmanPriddy
Daniel Hughes
@trampster
thanks
Jason Priddy
@BatmanPriddy
Anytime, that's a great site for .NET source code!
Hugh Gleaves
@Korporal
@darrenstarr - This extension method should do what you need:
public static class Extensions
{
    public static IEnumerable<IEnumerable<T>> Pack<T>(this IEnumerable<T> S, int X)
    {
        int Y = 0;

        while (S.Skip(Y).Any())
        {
            yield return S.Skip(Y).Take(X);
            Y = Y + X;
        }
    }
}
This is kind of how you'd approach the solution in F#.
Hugh Gleaves
@Korporal
Or if you prefer a bit more compact
public static class Extensions
{
    public static IEnumerable<IEnumerable<T>> Pack<T>(this IEnumerable<T> S, int X)
    {
        int Y = 0;

        do  
        {
            yield return S.Skip(Y).Take(X);
        } while (S.Skip(Y+=X).Any());
    }
}
image.png
Hugh Gleaves
@Korporal
Also if you make your BezierSegment class expose a constructor that takes an IEnumerable, perhaps throwing if it doesnt have exactly three elements, then you can code this:
        var segments = ints.Pack(3).Select(triple => new BezierSegment(triple));
Hugh Gleaves
@Korporal
If you prefer recursion as opposed to mutable counters:
    public static IEnumerable<IEnumerable<T>> PackBy<T>(this IEnumerable<T> S, int X)
    {
        if (S.Any() == false)
            yield break;

        yield return S.Take(X);

        foreach (var sub in S.Skip(X).PackBy(X))
            yield return sub;
    }
Khizar Iqbal
@EngrKhizarIqbal
Hi Anyone here?
Hugh Gleaves
@Korporal
I am
Khizar Iqbal
@EngrKhizarIqbal
Does anyone guide me on how to run multiple tasks in asp.net core background service using queue background service implementation modal?
TeBeCo
@tebeco
there's a dedicated session in the docs avec background section with this as an exemple IIRC
with semaphore / loop queue / dequeue / consumer etc....