/// <summary> /// Initializes a new instance of the <see cref="WordCounterSupervisor"/> class. /// </summary> public WinTailSupervisor( MainWindowViewModel vm ) { m_vm = vm; validator = Context.ActorOf( FileValidatorActor.GetProps(), "filevalidator" ); fileEnumerator = Context.ActorOf( FileEnumeratorActor.GetProps(), "file-enumerator" ); Ready(); }
public MainWindow() { InitializeComponent(); vm = new MainWindowViewModel(); DataContext = vm; }
public static Props GetProps( MainWindowViewModel vm ) { return Props.Create( () => new WinTailSupervisor( vm ) ); }