kyeede
kyeede
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
which is the same set up in Startup but you declare [RegisterService] on top of your class and [InjectService] to use it with no problem
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
quite frankly, I ended up using Quickwire
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
i will try to look into it
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
I see, but using an extension for differentl logging would only resolve the issue I have with loggingmanager's circular dependency. it wouldn't resolve future dependency issues which im trying to figure out
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
isn't ILogger a part of SeriLog?
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
i see.
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
so the purpose of YukkaifyConfiguration is to.? declare YukkaifyEnvironment or
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
i could make those classes static ?
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
pretty much access LogManager's functions without instantiating it so it doesn't create an instance of it when i call that class
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
but i don't wanna create new instances whenever i need it because calling that class would also instantiate logmanager
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
ultimately, i wanna access class functions in other classes such as the logmanager which has useful utilities
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
and it repeats the cycle
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
however, i have many classes such as ClassX is dependend on ClassY but ClassY has an instance of ClassB which in turn has an instance of ClassY
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
so IYukkaifyEnvironment does not need a logger, what I wanna achieve is to access the variable Root wherever needed without doing
public class Class1
{
string Root { get; set; } = "path_here";
{

public class Class2
{
string Root { get; set; } = "path_here";
{

public class Class3
{
string Root { get; set; } = "path_here";
{
public class Class1
{
string Root { get; set; } = "path_here";
{

public class Class2
{
string Root { get; set; } = "path_here";
{

public class Class3
{
string Root { get; set; } = "path_here";
{
instead, i wanna do
public class Class1
{
string Root { get; set; } = "path_here";
{

public class Class2
{
private Class1 class1 { get; set; }
public Class2(Class1 _class1)
{
class1 = _class1;
class1.Root;
}
{
public class Class1
{
string Root { get; set; } = "path_here";
{

public class Class2
{
private Class1 class1 { get; set; }
public Class2(Class1 _class1)
{
class1 = _class1;
class1.Root;
}
{
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
managing dependencies in a large-scale application is challenging, indeed
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
like, i think the best thing for me is to learn how professionals manage their dependencies and how i can adapt to it
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
yes, i am reading up on stackoverflow right now but nothing gives me sort of a start on where I can improve my code in
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
especially because I would still need to learn how to utilize and manage dependencies
58 replies
CC#
Created by kyeede on 2/23/2024 in #help
Circular Dependency
which seems like a great idea but I am currently not able to transition over as quick and get the hang of a ASP.NET application
58 replies