Exemplo n.º 1
0
        public void Initialize(Api.ApiContext context)
        {
            // TODO: Not good! But without this, we are not able to resolve services.
            //       So we might need to think about improving the design of service apis. No idea for now.
            HttpContext.Current.Items["instance"] = context.InstanceName;
            HttpContext.Current.Items["language"] = context.Culture.Name;

            _context = new LocalApiContext(context, CommerceInstance.Current);
        }
Exemplo n.º 2
0
        public void Initialize(Api.ApiContext context)
        {
            // TODO: Not good! But without this, we are not able to resolve services.
            //       So we might need to think about improving the design of service apis. No idea for now.
            HttpContext.Current.Items["instance"] = context.InstanceName;
            HttpContext.Current.Items["language"] = context.Culture.Name;

            _context = new LocalApiContext(context, CommerceInstance.Current);
        }
Exemplo n.º 3
0
 protected QueryExecutorBase(LocalApiContext apiContext)
 {
     ApiContext = apiContext;
 }