///<summary> /// This function is called when a new Context is generated and InfoPoints are beeing collected by IlcCore Server /// Step 1 /// The task is to collect InfoPoints of Type Company ///</summary> public void ResolveInfoPoints(InfoPointProcess context, IInfoPointDataInterface dataInterface) { if (context.Context == null) { return; } var parser = new ContextParser(context.Context); var companyLoader = new CompanyLoader(); if (parser.IsCompanyName) { var companies = companyLoader.LoadCompanyByName(parser.CompanyName); dataInterface.Insert(companies); } else if (parser.IsDebitorNumber || parser.IsKreditorNumber) { var company = companyLoader.LoadCompany(parser.DebitorNumber); dataInterface.Insert(company); } else if (parser.IsEmailAddress) { var companies = companyLoader.LoadCompanyByContactEmail(parser.EmailAddress.ToString()); dataInterface.Insert(companies); } }
///<summary> /// This function is called when a new Context is generated and InfoPoints are beeing collected by IlcCore Server /// Step 1 /// The task is to collect InfoPoints of Type Company ///</summary> public void ResolveInfoPoints(InfoPointProcess context, IInfoPointDataInterface dataInterface) { if (context.Context == null) return; var parser = new ContextParser(context.Context); var companyLoader = new CompanyLoader(); if (parser.IsCompanyName) { var companies = companyLoader.LoadCompanyByName(parser.CompanyName); dataInterface.Insert(companies); } else if (parser.IsDebitorNumber || parser.IsKreditorNumber) { var company = companyLoader.LoadCompany(parser.DebitorNumber); dataInterface.Insert(company); } else if (parser.IsEmailAddress) { var companies = companyLoader.LoadCompanyByContactEmail(parser.EmailAddress.ToString()); dataInterface.Insert(companies); } }
public void ResolveInfoPoints(InfoPointProcess context, IInfoPointDataInterface dataInterface) { }