Esempio n. 1
0
        public Task CreateAsync(string name, IParticipantGrain moderator)
        {
            var moderatorId = moderator.GetPrimaryKey();

            this.grainState.State.Name            = name;
            this.grainState.State.ModeratorId     = moderatorId;
            this.grainState.State.ProcessingState = SessionProcessingState.Initial;
            return(this.grainState.WriteStateAsync());
        }
Esempio n. 2
0
        public Task CreateAsync(string name, IParticipantGrain moderator, bool autostop, Bulletin bulletin)
        {
            var moderatorId = moderator.GetPrimaryKey();

            this.grainState.State.Name = name;
            this.grainState.State.ModeratorIds.Add(moderatorId);
            this.grainState.State.ProcessingState = SessionProcessingState.Initial;
            this.grainState.State.AutoStop        = autostop;
            this.grainState.State.Bulletin        = bulletin;
            return(this.grainState.WriteStateAsync());
        }