Exemplo n.º 1
0
 public PoisController(IPoiService poiService,
                       IErrorResponseHelper errorResponseHelper,
                       IBtcLogger <PoisController> logger,
                       IHttpClientFactory httpClientFactory)
 {
     _poiService          = poiService;
     _errorResponseHelper = errorResponseHelper;
     _logger            = logger;
     _httpClientFactory = httpClientFactory;
 }
 public ShakeAroundController()
 {
     _settings   = ServiceHelper.Create <IVShopService>().GetVShopSetting(base.CurrentSellerManager.ShopId);
     _saService  = ServiceHelper.Create <IShakeAroundService>();
     _poiService = ServiceHelper.Create <IPoiService>();
     try
     {
         _saService.init(_settings.AppId, _settings.AppSecret);
         _poiService.init(_settings.AppId, _settings.AppSecret);
     }
     catch
     {
         _isdeploy = false;
     }
 }
Exemplo n.º 3
0
 public PoiController()
 {
     _settings = ServiceHelper.Create <IVShopService>().GetVShopSetting(base.CurrentSellerManager.ShopId);
     if (_settings != null)
     {
         _poiService = ServiceHelper.Create <IPoiService>();
         try
         {
             _poiService.init(_settings.AppId, _settings.AppSecret);
         }
         catch
         {
             _isdeploy = false;
         }
     }
 }
Exemplo n.º 4
0
 public PoiController(IPoiService iPoiService, IVShopService iVShopService)
 {
     _iVShopService = iVShopService;
     if (CurrentSellerManager != null)
     {
         this._settings = _iVShopService.GetVShopSetting(CurrentSellerManager.ShopId);
         if (this._settings != null)
         {
             this._iPoiService = iPoiService;
             try
             {
                 this._iPoiService.init(this._settings.AppId, this._settings.AppSecret);
             }
             catch
             {
                 this._isdeploy = false;
             }
         }
     }
 }
Exemplo n.º 5
0
        public ShakeAroundController(IVShopService iVShopService, IShakeAroundService iShakeAroundService, IPoiService iPoiService)
        {
            var _ivshop = iVShopService;

            if (CurrentSellerManager != null)
            {
                this._settings            = _ivshop.GetVShopSetting(CurrentSellerManager.ShopId);
                this._iShakeAroundService = iShakeAroundService;
                this._iPoiService         = iPoiService;
                try
                {
                    this._iShakeAroundService.init(this._settings.AppId, this._settings.AppSecret);
                    this._iPoiService.init(this._settings.AppId, this._settings.AppSecret);
                }
                catch
                {
                    this._isdeploy = false;
                }
            }
        }
Exemplo n.º 6
0
 public PoiTest()
 {
     _poiService = ServiceProvider.GetRequiredService <IPoiService>();
 }