public FDApiServices(IFDServiceHelper serviceHelper, IFPContext fdContext) { _ServiceHelper = serviceHelper; }
/// <summary> /// WebApiClient(此处最好注入一个appsetting service) /// </summary> /// <param name="fPContext"></param> /// <param name="appSettingService"></param> public WebApiClient(IFPContext fPContext, IAppSettingService appSettingService) { _Context = fPContext; _AppSettings = appSettingService; }
public ServiceProxy(IFPContext fPContext, IAppSettingService appSettingService) { _Context = fPContext; _AppSettings = appSettingService; _Token = _Context.GetValue(FDConst.IS_AuthenticationToken); }