public ManageArticlesModel(KnowledgeService knowledgeService, IMailManager mailManager, ApplicationDbContext context, UserManager <ApplicationUser> userManager) { m_knowledgeService = knowledgeService; m_mailManager = mailManager; m_context = context; m_userManager = userManager; }
public ViewResult KnowledgeDetail(int id) { var service = new KnowledgeService(); var knowlege = service.GetById(id); return(View("_KnowledgeDetail", knowlege)); }
public PartialViewResult LastAddKnowledge() { var service = new KnowledgeService(); var enumer = service.GetLastCreate(10); return(PartialView("_KnowledgeList", enumer)); }
public PartialViewResult LastViewKnowledge() { var service = new KnowledgeService(); var enumer = service.GetByIds(new int[] { 1, 2 }); return(PartialView("_KnowledgeList", enumer)); }
public JsonResult AddKnowledge(Knowledge knowledge) { var service = new KnowledgeService(); //FormCollection collection = new FormCollection(Request.Unvalidated().Form); service.Create(knowledge); return(Json(true)); }
static EbusinessProvider() { mCustomerPortalClient = new CustomerPortalService(); mCustomerPortalClient.Url = ToolsLib.Utility.WebUtils.GetSettingsValue("EbusinessUrl"); if (!string.IsNullOrWhiteSpace(ToolsLib.Utility.WebUtils.GetSettingsValue("ProxyServer"))) { mCustomerPortalClient.Proxy = new WebProxy(ToolsLib.Utility.WebUtils.GetSettingsValue("ProxyServer"), true); } mKnowledgeClient = new KnowledgeService(); mKnowledgeClient.Url = string.Format("{0}/KnowledgeService", ToolsLib.Utility.WebUtils.GetSettingsValue("EbusinessUrl")); if (!string.IsNullOrWhiteSpace(ToolsLib.Utility.WebUtils.GetSettingsValue("ProxyServer"))) { mKnowledgeClient.Proxy = new WebProxy(ToolsLib.Utility.WebUtils.GetSettingsValue("ProxyServer"), true); } }
// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { //-------------------- // Knowledge Service // (Central Knowledge Service) IKnowledgeService knowledgeService = new KnowledgeService(); //-------------------- // DataSetService // (Central Persistence Service) DataSetService dataService = new DataSetService(knowledgeService); IRequestDataSet requestService = dataService as IRequestDataSet; ISendSymptome sendService = dataService as ISendSymptome; //-------------------- // Data Response Service // provide feedback to users IResponseService responseService = new ResponseService(requestService, knowledgeService); //-------------------- // Analyzing Data // PDA - Probabilistic Data Analysis // PGA - Probabilistic Gradient Analysis (not implemented) var pdaService = new pdaService(requestService, knowledgeService); //var pgaService = new pgaService(requestService); //-------------------- // Register Services at IC-Container services.AddSingleton <IRequestDataSet>(dataService); services.AddSingleton <ISendSymptome>(dataService); services.AddSingleton <IKnowledgeService>(knowledgeService); services.AddSingleton <IResponseService>(responseService); services.AddHostedService <pdaService>(); // services.AddHostedService<pgaService>(); services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); }
public KnowledgesController(CCSSCOREContext context) { service = new KnowledgeService(context); }
/// <summary> /// 构造函数。 /// </summary> public RecentViewPageViewModel(KnowledgeService knowledgeService) { _knowledgeService = knowledgeService; RefreshPage(); }
public ArticleViewModel(KnowledgeService knowledgeService) { m_knowledgeService = knowledgeService; }
public ManageKnowledgeModel(KnowledgeService knowledgeService) { m_knowledgeService = knowledgeService; }
public MyFavoritePageViewModel(KnowledgeService knowledgeService) { _knowledgeService = knowledgeService; RefreshPage(); }
public PrivatePageModel(KnowledgeService knowledgeService, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager) { m_knowledgeService = knowledgeService; m_userManager = userManager; m_signInManager = signInManager; }
public ManageCategoriesModel(KnowledgeService knowledgeService) { m_knowledgeService = knowledgeService; }