public void ProcCreateRuUkDb() { ProcCreateDb(DBF_W2V); var cln_proc = new ServiceRoutines(); bool infilter(Dict w2v) { var cln_w = cln_proc.GetLettersOnly(w2v.Word, w2v.Lang); var reject = string.IsNullOrEmpty(cln_w); if (reject) { Log($"Skip {w2v}"); } return(!reject); } _lang = LangLabel.ru; ProcAppendDb(FTF_VECTOR, DBF_W2V, LANG , with_insert_or_replace: true, fn_infilter_predicat: infilter); _lang = LangLabel.uk; ProcAppendDb(FTF_VECTOR, DBF_W2V, LANG , with_insert_or_replace: true, fn_infilter_predicat: infilter); SubProcInsertPredefinedMacro(DBF_W2V); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main() { #if (!DEBUG) UnityDIBuilder diBuilder = new UnityDIBuilder(new UnityContainer()); var diContainer = diBuilder.Register(); ServiceRoutines sr = diContainer.Resolve <ServiceRoutines>(); ServiceBase[] ServicesToRun; ServicesToRun = new ServiceBase[] { new MarineDeliveryServiceNew(sr) }; ServiceBase.Run(ServicesToRun); #else UnityDIBuilder diBuilder = new UnityDIBuilder(new UnityContainer()); var diContainer = diBuilder.Register(); ServiceRoutines sr = diContainer.Resolve <ServiceRoutines>(); sr.UpdateOrderNoteAttachment(); #endif }
public void ProcCreateDbRuk() { ProcCreateDb(DBF_W2V_RUK); var cln_proc = new ServiceRoutines(); bool infilter(Dict w2v) { var cln_w = cln_proc.GetLettersOnly(w2v.Word, w2v.Lang); var reject = string.IsNullOrEmpty(cln_w); if (reject) { Log($"Skip {w2v}"); } return(!reject); } ProcAppendDb("wiki.ru.align.vec", DBF_W2V_RUK, LangLabel.ru , with_insert_or_replace: true, fn_infilter_predicat: infilter); ProcAppendDb("wiki.uk.align.vec", DBF_W2V_RUK, LangLabel.uk , with_insert_or_replace: true, fn_infilter_predicat: infilter); ProcAppendDb("wiki.en.align.vec", DBF_W2V_RUK, LangLabel.en , with_insert_or_replace: true, fn_infilter_predicat: infilter); }
public MarineDeliveryServiceNew(ServiceRoutines routines) { InitializeComponent(); this.serviceRoutines = routines; }