17 lines
436 B
C#
17 lines
436 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using bts.api;
|
|
using bts.api.core;
|
|
|
|
namespace bts.api
|
|
{
|
|
public static class Locator
|
|
{
|
|
readonly static Lazy<ServiceContext> _context = new Lazy<ServiceContext>(() => new ServiceContext(), true);
|
|
public static T locate<T>(string qualifier="") where T : class, IApiClient
|
|
{
|
|
return _context.Value.locate<T>(qualifier);
|
|
}
|
|
}
|
|
}
|