Kosta
Kosta
CC#
Created by Kosta on 3/14/2023 in #help
✅ Mvvm toolkit - messenger not working? Recive messege not invoked
Well i've managed to solve it with Dependency injection, needed to initilaze the class lol forgot
4 replies
CC#
Created by Kosta on 3/8/2023 in #help
❔ Why do we need to provide values for base class we are inheriting from?
I mean this is the class:
public abstract class Entity<TKey> : Entity, IEntity<TKey>
{
/// <inheritdoc/>
public virtual TKey Id { get; protected set; }

protected Entity()
{

}

protected Entity(TKey id)
{
Id = id;
}

public override object[] GetKeys()
{
return new object[] { Id };
}

/// <inheritdoc/>
public override string ToString()
{
return $"[ENTITY: {GetType().Name}] Id = {Id}";
}
}
public abstract class Entity<TKey> : Entity, IEntity<TKey>
{
/// <inheritdoc/>
public virtual TKey Id { get; protected set; }

protected Entity()
{

}

protected Entity(TKey id)
{
Id = id;
}

public override object[] GetKeys()
{
return new object[] { Id };
}

/// <inheritdoc/>
public override string ToString()
{
return $"[ENTITY: {GetType().Name}] Id = {Id}";
}
}
I just dont get how from this methode:
protected Entity(TKey id)
{
Id = id;
}
protected Entity(TKey id)
{
Id = id;
}
We get the Id in our new initialized class
5 replies
CC#
Created by Kosta on 3/7/2023 in #help
❔ Why do my source generated properties are unreacheable in code? using mvvm toolkit
No ideas? 😄
242 replies
CC#
Created by LordKalma (CT7ALW) on 3/7/2023 in #help
❔ App.config: "special one" for testing/debugging
18 replies
CC#
Created by Kosta on 2/14/2023 in #help
❔ How to map dateonly and timeonly?
gotcha, thx!
5 replies
CC#
Created by Kosta on 2/12/2023 in #help
❔ How does the execution pipeline works with interfaces that implement methods?
I mean chatgpt gave me this unsure if its correct: The button knows to invoke the Execute method of the ICommand because that is the standard behavior defined by the WPF framework for buttons that are bound to a command. When you bind an ICommand implementation to a button in XAML, the framework automatically sets up the necessary event handlers and bindings to ensure that the button invokes the Execute method of the command when it is clicked. The process works as follows: The button's Click event is raised when the button is clicked by the user. The framework looks for a command that is bound to the button via the Command property. If a command is found, the framework invokes the Execute method of the command. This is a standard behavior of the WPF framework, and it is defined in the Button class, which is the base class for all buttons in WPF. The implementation details of this behavior are part of the WPF framework code and can be found in the .NET source code, but you do not typically need to interact with these details directly in your own code.
5 replies
CC#
Created by Kosta on 2/12/2023 in #help
❔ How does the execution pipeline works with interfaces that implement methods?
But again, how does it know to go into that method? is there a bit of code that tells it "becuase you implemented this interface you need to go into the execute method"?
5 replies
CC#
Created by Kosta on 11/22/2022 in #help
Why cant i go into the methode? Seems to skip it entirely
guess you gotta return that
20 replies
CC#
Created by Kosta on 11/22/2022 in #help
Why cant i go into the methode? Seems to skip it entirely
5 million
20 replies
CC#
Created by Kosta on 11/22/2022 in #help
Why cant i go into the methode? Seems to skip it entirely
lol i did return MakeHttpCall and it works now XD
20 replies
CC#
Created by Kosta on 11/22/2022 in #help
Why cant i go into the methode? Seems to skip it entirely
So How would u write it?
20 replies
CC#
Created by Kosta on 11/22/2022 in #help
Why cant i go into the methode? Seems to skip it entirely
i got no foreachloop
20 replies
CC#
Created by Kosta on 11/22/2022 in #help
Why cant i go into the methode? Seems to skip it entirely
hm i dont quite get you
20 replies
CC#
Created by Kosta on 11/22/2022 in #help
Why cant i go into the methode? Seems to skip it entirely
@Wz can u elaborate?
20 replies
CC#
Created by Kosta on 11/22/2022 in #help
Why cant i go into the methode? Seems to skip it entirely
app.MapGet("/test", async () =>
{
await MakeHttpCall();
});
app.MapGet("/test", async () =>
{
await MakeHttpCall();
});
this code results in an error build
20 replies
CC#
Created by Kosta on 11/22/2022 in #help
Trying to compare grpc to minimal api performence- minimal much faster, Logic probably rotten
Nop , same error ""does not contain extension defenition for getasyncenumarat"
7 replies
CC#
Created by Kosta on 11/22/2022 in #help
Trying to compare grpc to minimal api performence- minimal much faster, Logic probably rotten
Nobody got any idea guys? 😄
7 replies
CC#
Created by Kosta on 11/20/2022 in #help
Streaming a csv file to a console app with minimal api-How?
@phaseshift that worked. amazing, thanks
3 replies
CC#
Created by Kosta on 11/6/2022 in #help
Silly Question -How do I clone these grpc examples?
Alright thanks bud
3 replies
CC#
Created by Kosta on 11/6/2022 in #help
Silly Question -How do I clone these grpc examples?
Ah thats a shame
3 replies