private static void CaptionGeneratorInit(PythonCaptionGenerator generator) { Trace.TraceInformation("Start PythonCaptionGenerator init..."); try { generator.StartWork(); } catch (Exception e) { Trace.TraceError("Error while init PythonCaptionGenerator: " + e.Message); return; } Trace.TraceInformation("PythonCaptionGenerator init finished"); }
public CaptionCommand(PythonCaptionGenerator generator, TextWriter writer) : base("caption", "caption <filePath> # get caption by photo") { this.generator = generator; this.writer = writer; }
public CaptionGenerateHandler(PythonCaptionGenerator generator) { this.generator = generator; }