ASP.NET Core

·

1 min read

Table of contents

No heading

No headings in the article.

Middleware

middleware.png

  • app.UseMiddleware
  • app.Map
  • app.Run
  • app.Use
  • app.MapWhen
  • app.UseWhen

Dependency Injection

namespace Microsoft.Extensions.DependencyInjection
{
    //
    // Summary:
    //     Specifies the contract for a collection of service descriptors.
    public interface IServiceCollection : ICollection<ServiceDescriptor>, IEnumerable<ServiceDescriptor>, IEnumerable, IList<ServiceDescriptor>
    {
    }
}

 [DebuggerDisplay("Lifetime = {Lifetime}, ServiceType = {ServiceType}, ImplementationType = {ImplementationType}")]
    public class ServiceDescriptor
    {
}

Service Lifetime: • Transient • Scoped • Singleton

RabbitMQ

  • docker pull rabbitmq:3-management
  • docker run --rm -it -p 15672:15672 -p 5672:5672 rabbitmq:3-management
  • amqp.org

image.png

  • Competing Consumers