コード例 #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);
        }
コード例 #2
0
ファイル: LocalCommerceApi.cs プロジェクト: Kooboo/Ecommerce
        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);
        }
コード例 #3
0
 protected QueryExecutorBase(LocalApiContext apiContext)
 {
     ApiContext = apiContext;
 }