<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by parsa panahpoor on Medium]]></title>
        <description><![CDATA[Stories by parsa panahpoor on Medium]]></description>
        <link>https://medium.com/@parsapanahpoor?source=rss-3ef2b3c77f44------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8qH5p3Yd8yL5EZ-D</url>
            <title>Stories by parsa panahpoor on Medium</title>
            <link>https://medium.com/@parsapanahpoor?source=rss-3ef2b3c77f44------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:43:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@parsapanahpoor/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What is unit of work pattern]]></title>
            <link>https://medium.com/@parsapanahpoor/what-is-unit-of-work-pattern-370e3c8c1e55?source=rss-3ef2b3c77f44------2</link>
            <guid isPermaLink="false">https://medium.com/p/370e3c8c1e55</guid>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[repository-pattern]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[unitofwork]]></category>
            <category><![CDATA[ef-core]]></category>
            <dc:creator><![CDATA[parsa panahpoor]]></dc:creator>
            <pubDate>Tue, 08 Oct 2024 11:35:29 GMT</pubDate>
            <atom:updated>2024-10-08T11:35:29.767Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*Kjp-XrAG3IgqZWviIYKJ8g.jpeg" /><figcaption>The unit of work pattern</figcaption></figure><blockquote><em>This pattern is described in the book Patterns of Enterprise Application Architecture written by Martin Fowler</em></blockquote><p>Consider a store website. In the process of deleting categories, we first delete the category and then, after making sure that the category was deleted correctly, we delete its products. Now, if a problem occurs while removing the products and the products are not removed correctly, the category is removed and we have a series of products without categories???</p><p>This is where the Unit of Work Pattern helps us along with the Repository.</p><p>A UnitOfWork, as the name suggests, exists to do something. This can be as simple as retrieving information and displaying it, or as complex as processing a new order. When you use EntityFramework and instantiate a DbContext, you are actually creating a UnitOfWork.</p><p>The Unit of Work Pattern is a design pattern that you can use to expose different repositories in the application. It has very similar properties to dbContext, only Unit of Work is not coupled to Entity Framework Core like dbContext.</p><p>So far, we have built several repositories. We can easily inject these Repositories into the constructor of Services classes and access the data. This is very easy when you only have 2 or 3 Repository objects involved. What happens when there are more than 3 Repositories? Adding new injections every so often will not be practical. To put all Repositories on one object, we use Unit Of Work.</p><p>The advantage of this method is that when in the above example we delete the categories first and then the products, these changes are applied only in the memory and by calling the complete method, a transaction is created in the database and all those changes are applied together in the database. Now, if a problem occurs in the middle of work and for example one of the products cannot be deleted, all the changes will be returned to the original state and it will be as if we did not make any changes in the database (and this method will return an error and tell the user that the deletion was not done correctly. ) and neither categories nor products are deleted.</p><blockquote>The Unit of Work pattern is responsible for exposing existing repositories and making changes to the DataSource to ensure a complete transaction, without data loss.</blockquote><p>Another major advantage is that multiple Repository objects have different instances of dbcontext within them. This can lead to data leakage in complex cases.</p><blockquote>Note: IDisposable is an interface that contains a single method called Dispose() to release unmanaged resources such as files, streams, databases, connections, etc.</blockquote><p>The Unit of Work design pattern applies the data persistence operation of several objects in our business as an atomic transaction, which ensures that the entire transaction is committed or rolled back. The Unit of Work design pattern encapsulates multiple repositories and shares a single database context between them.</p><p>Encapsulation means protecting data integrity. That is, when a class is well encapsulated, its internal data cannot be placed in an inconsistent or invalid value or state. It means protecting the integrity and accuracy of data, which is called encapsulation</p><p>As mentioned, Information Hiding and data bundling or operations performed on the data together help encapsulation. Information Hiding hides the internal data from the view of the clients of that class and placing the data and operation together creates a single entry point for all operations that can be performed on the class.</p><p>In this way, you can check before changing the State or data of a class and check the integrity of the data that is actually going to be placed in your class.</p><p>It is also mentioned in the discussion of encapsulation of invariants. Invariant means a series of conditions that must be maintained at all times. As a programmer, you have to make sure that none of the invariants ever become defective, and it is your duty to consider the necessary arrangements for this.</p><p>These two concepts are closely related, but they also have many differences. Encapsulation talks about data consistency while Abstraction refers to enlarging essentials and removing irrelevant ones.</p><p>The help that Abstraction gives us is that we no longer worry about whether the operation we are doing is valid or not, and we leave this task to Encapsulation and focus on what the code does and not how it does it.</p><p>This is where there is a difference of opinion about the creation of repositories</p><p>As mentioned earlier, we use an abstraction when a high-level abstraction has abstracted a series of lower-level complexities. When DbContext itself is a Unit of Work, we have no reason to define a Unit of Work. With this implementation, we actually experience shallow abstractions, which we came to know as Shallow abstractions. In scenarios where the complexity on DbContext becomes too much, the Unit Of Work is removed from the shallow mode and its implementation becomes justified.</p><blockquote>When you use EF core and instantiate a DbContext, you are actually creating a Unit Of Work.</blockquote><p>The DbContext class is based on the Unit of Work pattern, which includes all DbSet entities. The DbContext class manages database operations on these entities and later stores all these updates as a transaction in the database.</p><h3>DbContext class is a combination of Unit Of Work and Repository patterns.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=370e3c8c1e55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C# interview question : What is a Record?]]></title>
            <link>https://medium.com/@parsapanahpoor/c-interview-question-what-is-a-record-94b4a9a486d0?source=rss-3ef2b3c77f44------2</link>
            <guid isPermaLink="false">https://medium.com/p/94b4a9a486d0</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[record]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[parsa panahpoor]]></dc:creator>
            <pubDate>Sun, 29 Sep 2024 15:03:28 GMT</pubDate>
            <atom:updated>2024-09-29T15:03:28.017Z</atom:updated>
            <content:encoded><![CDATA[<h3>C# interview question : What is a Record?</h3><figure><img alt="What is a Record?" src="https://cdn-images-1.medium.com/max/630/1*x0GmsuDONYqEM4aDn5pxyQ.png" /><figcaption>What is a Record?</figcaption></figure><h3>What is a Record ?</h3><ul><li>A <strong>record</strong> in C# is a <strong>special type of class</strong> introduced in <strong>C# 9.0</strong> that focuses on <strong>immutability</strong> and <strong>value-based equality</strong>.</li><li>It is used primarily for data models, DTOs, or any type of object where you care about <strong>the content of the object</strong> rather than its identity in memory.</li></ul><h3>Is a Record a Value Type or a Reference Type?</h3><ul><li><strong>Records are reference types</strong>.</li><li>Even though records offer <strong>value-based equality</strong> (comparing the actual data in the record rather than the object reference), they are still <strong>reference types</strong>. This means they are allocated on the <strong>heap</strong>, and when you pass a record around or assign it to another variable, you are copying a <strong>reference</strong> to the same object, not the data itself.</li></ul><h3>Is a Record Predefined or Custom?</h3><ul><li><strong>Records are custom types</strong>.</li><li>You define a record just like you would define a class or struct. While C# provides the keyword record, you still create your own record types based on your specific needs.</li></ul><h3>Example:</h3><pre>public record Person(string FirstName, string LastName);</pre><h3>Is a Record Mutable or Immutable?</h3><ul><li>By <strong>default, records are immutable</strong>, meaning their properties cannot be modified after the record is created. This immutability is a key feature of records in C# and is part of what makes them useful for scenarios like data transfer objects (DTOs) where the data should not change once set.</li><li>However, <strong>records can be made mutable</strong> if needed. You can modify the properties explicitly by using standard property syntax with set accessors.</li></ul><h4>Example (Immutable Record by Default):</h4><pre>public record Person(string FirstName, string LastName);<br><br>var person = new Person(&quot;Parsa&quot;, &quot;Panahpoor&quot;);<br>// person.FirstName = &quot;Nima&quot;;  // This will cause a compile error because it&#39;s immutable.</pre><h4>Example (Mutable Record):</h4><pre>public record Person<br>{<br>    public string FirstName { get; set; }  // Mutable<br>    public string LastName { get; set; }   // Mutable<br>}<br><br>var person = new Person { FirstName = &quot;Parsa&quot;, LastName = &quot;Panahpoor&quot; };<br>person.FirstName = &quot;Nima&quot;;  // This works, since the record is mutable now.</pre><h3>Deconstruction in Records</h3><p>Records in C# automatically generate a deconstructor for you, based on the properties defined in the record. This feature is especially useful when you want to easily extract multiple values from a record instance without manually accessing each property.</p><h3>Example</h3><p>Here’s an example using a record with deconstruction:</p><pre>public record Person(string FirstName, string LastName);<br><br>var person = new Person(&quot;Parsa&quot;, &quot;Panahpoor&quot;);<br><br>// Deconstructing the record<br>var (firstName, lastName) = person;<br><br>Console.WriteLine(firstName); // Output: Parsa<br>Console.WriteLine(lastName);  // Output: Panahpoor</pre><h3>Summary of Record Characteristics:</h3><figure><img alt="Record Characteristics" src="https://cdn-images-1.medium.com/max/538/1*Xs_SgrvclG6XKCBzHaDeqg.png" /><figcaption>Record Characteristics</figcaption></figure><h3>Additional Notes:</h3><ul><li><strong>Value-based equality</strong>: Even though records are reference types, they override the default reference equality behavior (used by classes) and instead compare <strong>the values of their properties</strong>. This makes them behave somewhat like <strong>value types</strong> in terms of equality.</li><li><strong>Immutability with </strong><strong>with keyword</strong>: You can create a <strong>modified copy</strong> of an immutable record using the with expression, which is very useful in scenarios where you want to change a few fields while keeping the original record unchanged.</li></ul><pre>var person1 = new Person(&quot;Parsa&quot;, &quot;Panahpoor&quot;);<br>var person2 = person1 with { FirstName = &quot;Nima&quot; };<br><br>// person1 is still &quot;Parsa&quot;, but person2 is now &quot;Nima&quot;.</pre><p>In summary, <strong>records are reference types</strong>, but they are designed to behave more like <strong>value types</strong> in terms of equality and immutability. They are <strong>custom types</strong> that can be <strong>immutable by default</strong>, though you can opt to make them mutable if necessary.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94b4a9a486d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding IServiceCollection and IServiceProvider in ASP.NET]]></title>
            <link>https://medium.com/@parsapanahpoor/understanding-iservicecollection-and-iserviceprovider-in-asp-net-f798c4adef70?source=rss-3ef2b3c77f44------2</link>
            <guid isPermaLink="false">https://medium.com/p/f798c4adef70</guid>
            <dc:creator><![CDATA[parsa panahpoor]]></dc:creator>
            <pubDate>Mon, 23 Sep 2024 07:11:36 GMT</pubDate>
            <atom:updated>2024-09-23T07:11:36.798Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding IServiceCollection and IServiceProvider in ASP.NET Core: A Complete Guide to Dependency Injection</h3><figure><img alt="Comparison of IServiceCollection and IServiceProvider in ASP.NET Core" src="https://cdn-images-1.medium.com/max/465/1*crexVzkXdzgrH1ph8PJgjQ.png" /><figcaption>Comparison of IServiceCollection and IServiceProvider in ASP.NET Core</figcaption></figure><h3>What is IServiceCollection?</h3><p>IServiceCollection is a fundamental part of the Dependency Injection (DI) system in ASP.NET Core and .NET Core. It is used to register and configure the services that the application will need during runtime. By registering services with IServiceCollection, developers can promote loose coupling between components and enhance maintainability and testability.</p><h4>Key Features of IServiceCollection:</h4><ol><li><strong>Service Registration</strong>: Developers register services in the DI container with different lifetimes:</li></ol><ul><li>AddTransient: A new instance of the service is created every time it is requested.</li><li>AddScoped: A single instance is created per request.</li><li>AddSingleton: A single instance is created and shared throughout the entire application lifetime.</li></ul><p>Example :</p><pre>services.AddTransient&lt;IMyService, MyService&gt;();<br>services.AddScoped&lt;IRepository, Repository&gt;();<br>services.AddSingleton&lt;ILogger, Logger&gt;();</pre><p>2.<strong>Configuration and Options</strong>: You can also register configurations or settings using IServiceCollection to bind them to configuration sections.</p><pre>services.Configure&lt;MyAppSettings&gt;(configuration.GetSection(&quot;MyAppSettings&quot;));</pre><p><strong>3.Custom Services</strong>: Custom services can be registered by specifying how they should be created.</p><pre>services.AddSingleton&lt;ICustomService&gt;(sp =&gt; new CustomService(Configuration[&quot;ConnectionString&quot;]));</pre><p><strong>4.Dependency Resolution</strong>: Once services are registered, they can be resolved and injected into other classes or controllers.</p><pre>public class MyController<br>{<br>    private readonly IMyService _myService;<br>    public MyController(IMyService myService)<br>    {<br>        _myService = myService;<br>    }<br>}</pre><h4>How IServiceCollection Works:</h4><p>IServiceCollectionis an interface representing a <strong>container</strong> that holds all the registered services in an ASP.NET Core application. It’s essentially a collection of ServiceDescriptorobjects. This interface is used to configure the DI system by adding services to the container during the <strong>Program.cs</strong> phase of an application.</p><p>In the <strong>Program</strong>.cs file, you typically register services using the ConfigureServices method by calling methods like AddScoped, AddSingleton, and AddTransient. These methods internally create ServiceDescriptorobjects and add them to the IServiceCollection.</p><pre>public void ConfigureServices(IServiceCollection services)<br>{<br>    // Register a service with a Scoped lifetime<br>    services.AddScoped&lt;IMyService, MyService&gt;();<br>}</pre><p>When you call services.AddScoped(), it essentially adds a new ServiceDescriptorto the IServiceCollection.</p><h3>What is ServiceDescriptor in ASP.NET Core?</h3><p>In ASP.NET Core, ServiceDescriptor defines how services are managed in the <strong>Dependency Injection (DI)</strong> system. It holds information about:</p><ol><li><strong>Service Type</strong>: The interface or class defining the service (e.g., IMyService).</li><li><strong>Implementation Type</strong>: The class that provides the actual service (e.g., MyService).</li><li><strong>Service Lifetime</strong>: How long the service should live, such as Transient, Scoped, or Singleton.</li></ol><h4>How ServiceDescriptor Works</h4><p>A ServiceDescriptor tells ASP.NET Core how to create and manage a service. There are three main ways to create a ServiceDescriptor:</p><ul><li><strong>By specifying the service and implementation types</strong>.</li><li><strong>By using a factory function to create the service</strong>.</li><li><strong>By directly providing an instance of the service</strong>.</li></ul><p>For example:</p><pre>var descriptor = new ServiceDescriptor(<br>    typeof(IMyService),   // Service Type<br>    typeof(MyService),    // Implementation Type<br>    ServiceLifetime.Scoped // Lifetime (Scoped, Singleton, or Transient)<br>);</pre><h3>Relationship Between ServiceDescriptor and IServiceCollection</h3><p>IServiceCollection is like a container that holds all the services. When you use methods like AddScoped or AddSingleton, ASP.NET Core creates a ServiceDescriptor for each service and adds it to IServiceCollection.</p><p>For example:</p><pre>services.AddScoped&lt;IMyService, MyService&gt;();</pre><p>This creates a ServiceDescriptor that registers IMyService with MyService as its implementation, and specifies a <strong>Scoped</strong> lifetime (meaning one instance per request).</p><h4>Manually Creating ServiceDescriptor</h4><p>Instead of using methods like AddScoped, you can manually create and add a ServiceDescriptor:</p><pre>var descriptor = new ServiceDescriptor(<br>    typeof(IMyService), <br>    typeof(MyService), <br>    ServiceLifetime.Scoped<br>);<br>services.Add(descriptor);</pre><h3>Key Properties of ServiceDescriptor</h3><p>The ServiceDescriptor class includes the following key properties that define how services are managed:</p><ul><li><strong>ServiceType</strong>: The type of the service, typically an interface.</li><li><strong>ImplementationType or ImplementationFactory</strong>: The class or factory that provides the implementation.</li><li><strong>ImplementationInstance</strong>: An instance of the service if it is provided directly.</li><li><strong>Lifetime</strong>: Specifies the service’s lifetime (Transient, Scoped, or Singleton).</li></ul><p>Here is a simplified structure of the ServiceDescriptor class:</p><pre>public class ServiceDescriptor<br>{<br>    public Type ServiceType { get; }<br>    public Type ImplementationType { get; }<br>    public object ImplementationInstance { get; }<br>    public Func&lt;IServiceProvider, object&gt; ImplementationFactory { get; }<br>    public ServiceLifetime Lifetime { get; }<br>}</pre><p>Summary of what was said:</p><p><strong>1.IServiceCollection</strong> is the <strong>container</strong> used to register all services in an application.</p><p><strong>2.ServiceDescriptor</strong> acts as the <strong>blueprint</strong> that defines how each service should be created and managed, specifying the <strong>type</strong>, <strong>implementation</strong>, and <strong>lifetime</strong> (Transient, Scoped, or Singleton).</p><p>3.Methods like <strong>AddScoped</strong>, <strong>AddSingleton</strong>, and <strong>AddTransient</strong> in <strong>IServiceCollection</strong> automatically create and register <strong>ServiceDescriptor</strong> instances. These methods help configure Dependency Injection (DI) in <strong>ASP.NET Core</strong>.</p><h3>What is IServiceProvider?</h3><p><strong>IServiceProvider</strong> is a core part of the <strong>Dependency Injection (DI)</strong> system in <strong>ASP.NET Core</strong>. It is responsible for <strong>resolving instances of services</strong> at runtime, allowing these services to be injected into other classes, like controllers or services, as needed. It also ensures that services adhere to their expected <strong>lifetime</strong> (e.g., Singleton, Scoped, or Transient).</p><p>After all the services are registered using <strong>IServiceCollection</strong>, the next step is to create an <strong>IServiceProvider</strong>. This is done using the <strong>BuildServiceProvider()</strong> method, which wraps the <strong>service registrations</strong> and enables the application to resolve services when required.</p><p>In short:</p><ul><li><strong>IServiceCollection</strong> is used to <strong>register services</strong>.</li><li><strong>IServiceProvider</strong> is used to <strong>resolve services</strong>.</li></ul><p>Here’s how you can create and use an IServiceProvider:</p><pre>var serviceCollection = new ServiceCollection();<br>serviceCollection.AddSingleton&lt;ClassA&gt;();<br>serviceCollection.AddSingleton&lt;IThing, ClassB&gt;();<br><br>var serviceProvider = serviceCollection.BuildServiceProvider();</pre><h3>How Does BuildServiceProvider() Work?</h3><p>The <strong>BuildServiceProvider()</strong> method compiles the list of services registered in <strong>IServiceCollection</strong> and generates an <strong>IServiceProvider</strong>. This method takes care of the internal mechanics of service resolution.</p><p>Here’s an example of how to resolve a service:</p><pre>var serviceProvider = services.BuildServiceProvider(); <br>var myService = serviceProvider.GetService&lt;IMyService&gt;(); // Resolving the registered service</pre><h3>Workflow of IServiceProvider</h3><ol><li><strong>Startup</strong>: During application startup, services are registered in <strong>IServiceCollection</strong> using methods like <strong>AddScoped</strong>, <strong>AddSingleton</strong>, and <strong>AddTransient</strong>.</li><li><strong>Service Provider Creation</strong>: Once all services are registered, the application calls <strong>BuildServiceProvider()</strong> to create an <strong>IServiceProvider</strong>, which manages service resolution.</li><li><strong>Runtime</strong>: At runtime, when a service is needed (for example, injecting a dependency into a controller), the <strong>IServiceProvider</strong> resolves the service according to its registration (Singleton, Scoped, or Transient).</li></ol><h3>Full Example of Service Registration and Resolution:</h3><pre>public void ConfigureServices(IServiceCollection services)<br>{<br>    // Registering services in IServiceCollection<br>    services.AddScoped&lt;IMyService, MyService&gt;();<br>}<br><br>// Later in the application lifecycle<br>var serviceProvider = services.BuildServiceProvider();<br><br>// Using IServiceProvider to resolve services<br>var myService = serviceProvider.GetService&lt;IMyService&gt;();</pre><p>In this example:</p><ul><li><strong>BuildServiceProvider()</strong> creates an <strong>IServiceProvider</strong> based on service registrations.</li><li><strong>GetService&lt;IMyService&gt;()</strong> resolves and retrieves the service using the <strong>IServiceProvider</strong>.</li></ul><h3>Conclusion</h3><p>In ASP.NET Core, <strong>Dependency Injection (DI)</strong> is vital for creating loosely coupled, testable, and maintainable applications. The <strong>IServiceCollection</strong> and <strong>IServiceProvider</strong> interfaces work together to manage service registration and resolution.</p><p><strong>IServiceCollection</strong> is used at startup to register services with methods like <strong>AddTransient()</strong>, <strong>AddScoped()</strong>, and <strong>AddSingleton()</strong>, defining their lifetimes:</p><ul><li><strong>Transient services</strong> are created with each request, suitable for lightweight, stateless functions.</li><li><strong>Scoped services</strong> last for a single request, ensuring consistent instances.</li><li><strong>Singleton services</strong> are created once and shared throughout the application.</li></ul><p>This decouples dependencies, reduces code duplication, and promotes modularity, allowing components to focus on their specific responsibilities.</p><p>During runtime, <strong>IServiceProvider</strong> resolves dependencies as needed. It uses the configuration from <strong>IServiceCollection</strong> to provide instances, improving efficiency through:</p><ul><li><strong>IServiceCollection</strong> handling service setup.</li><li><strong>IServiceProvider</strong> managing instance resolution.</li></ul><h3>Benefits of Using IServiceCollection and IServiceProvider</h3><ul><li><strong>Loose Coupling:</strong> Reduces dependency on implementations, enhancing flexibility.</li><li><strong>Testability:</strong> Simplifies mocking services for unit tests.</li><li><strong>Maintainability:</strong> Centralized registration allows for easy changes without widespread code updates.</li><li><strong>Flexibility:</strong> Supports managing service lifecycles based on requirements.</li></ul><p>In summary, <strong>IServiceCollection</strong> and <strong>IServiceProvider</strong> enable a structured approach to dependency management, allowing developers to focus on business logic, resulting in cleaner, maintainable, and robust applications.</p><h3>Feature Comparison</h3><figure><img alt="This table compares IServiceCollection and IServiceProvider in ASP.NET Core’s Dependency Injection system. IServiceCollection registers services during startup and defines their lifetimes (using methods like AddTransient(), AddScoped(), and AddSingleton()). It allows developers to configure service dependencies. In contrast, IServiceProvider resolves these services at runtime, providing instances as needed. This separation helps maintain a clean architecture, ensuring loose coupling, easier test" src="https://cdn-images-1.medium.com/max/535/1*P0wx9f3Rn3ARihUlyU1H-Q.png" /><figcaption>Comparison of IServiceCollection and IServiceProvider in ASP.NET Core: This table highlights their roles and usage in the Dependency Injection</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f798c4adef70" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>