Ejemplo n.º 1
0
        public static void UseTriggerListener(this ISystemContext context, ITriggerListener listener)
        {
            var router = context.ResolveService <TriggerEventRouter>();

            if (router == null)
            {
                context.RegisterService <TriggerEventRouter>();
            }

            context.RegisterInstance(listener);
        }
 public static void UserSpatial(this ISystemContext context)
 {
     context.RegisterService <SpatialTypeResolver>();
     context.RegisterInstance <IRoutineResolver>(SpatialSystemFunctions.Resolver);
 }
Ejemplo n.º 3
0
 public static void UseXml(this ISystemContext context)
 {
     context.RegisterService <XmlTypeResolver>();
     context.RegisterInstance(XmlFunctions.Resolver);
 }
Ejemplo n.º 4
0
 public static void UseRoutineResolver <TResolver>(this ISystemContext context, TResolver resolver)
     where TResolver : class, IRoutineResolver
 {
     context.RegisterInstance(resolver);
 }