public async Task<ImmutableArray<SectionDto>> GetSectionsForNotebook(IActorRef actor, NotebookDto notebook) { var answer = await actor.Ask(new SectionActor.GetSectionsForNotebook(notebook)); if (answer is SectionActor.GetSectionsForNotebookResult) { var result = answer as SectionActor.GetSectionsForNotebookResult; return result.Sections; } LogFailure(answer); return ImmutableArray<SectionDto>.Empty; }
public SectionCreated(NotebookDto newSectionParentNotebook) { NewSectionParentNotebook = newSectionParentNotebook; }
public NotebookSelected(NotebookDto notebook) { Notebook = notebook; }
public async Task<ImmutableArray<SectionDto>> GetSectionsForNotebook(NotebookDto notebook) { var actor = ActorSystem.ActorOf(ActorRegistry.Section); return await GetSectionsForNotebook(actor, notebook); }