DocSpace-client/common/ASC.Common/DependencyInjection/CommonServiceProvider.cs
pavelbannov acb9457253 Partial revert from 60b30ce542
Getting configuration via IServiceProvider
2019-05-17 14:58:09 +03:00

13 lines
311 B
C#

using System;
using Microsoft.Extensions.DependencyInjection;
namespace ASC.Common.DependencyInjection
{
public static class CommonServiceProvider
{
public static IServiceProvider Current { get; set; }
public static T GetService<T>() => Current.GetService<T>();
}
}