From 7e8f7a526696fb36f88aa2ef0ba22dfe34f55d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Sun, 19 Nov 2017 22:57:13 +0300 Subject: [PATCH] Removed accidently added code for DependencyAttribute --- .../DependencyAttribute.cs | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/src/Volo.Abp/Volo/Abp/DependencyInjection/DependencyAttribute.cs b/src/Volo.Abp/Volo/Abp/DependencyInjection/DependencyAttribute.cs index be04a55b2a..3663028e72 100644 --- a/src/Volo.Abp/Volo/Abp/DependencyInjection/DependencyAttribute.cs +++ b/src/Volo.Abp/Volo/Abp/DependencyInjection/DependencyAttribute.cs @@ -1,9 +1,5 @@ using System; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Microsoft.Extensions.Logging.Abstractions; -using Volo.Abp.Application.Services; -using Volo.Abp.Modularity; namespace Volo.Abp.DependencyInjection { @@ -25,45 +21,4 @@ namespace Volo.Abp.DependencyInjection Lifetime = lifetime; } } - - [Dependency(ReplaceServices = true)] - [ExposeServices(typeof(ITaxCalculator))] - public class TaxCalculator : ITaxCalculator, ITransientDependency - { - - } - - public interface ITaxCalculator - { - } - - public class BlogModule : AbpModule - { - public override void ConfigureServices(IServiceCollection services) - { - //Add single type - services.AddType(typeof(TaxCalculator)); - - //Add multiple types in once call - services.AddTypes(typeof(TaxCalculator), typeof(MyOtherService)); - - //Add single type generic shortcut - services.AddType(); - } - } - - public class MyService : ITransientDependency - { - public ILogger Logger { get; set; } - - public MyService() - { - Logger = NullLogger.Instance; - } - - public void DoSomething() - { - //...use Logger to write logs... - } - } } \ No newline at end of file