Ejemplo n.º 1
0
        public static TService GetServiceByContext <TService>(this IComponentContext ctx)
        {
            var serviceKey = ctx.GetServiceKey <TService>();

            return(ctx.ResolveKeyed <TService>(serviceKey));
        }