예제 #1
0
        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;
        }
예제 #2
0
 public SectionCreated(NotebookDto newSectionParentNotebook)
 {
     NewSectionParentNotebook = newSectionParentNotebook;
 }
예제 #3
0
 public NotebookSelected(NotebookDto notebook)
 {
     Notebook = notebook;
 }
예제 #4
0
        public async Task<ImmutableArray<SectionDto>> GetSectionsForNotebook(NotebookDto notebook)
        {
            var actor = ActorSystem.ActorOf(ActorRegistry.Section);

            return await GetSectionsForNotebook(actor, notebook);
        }