private async Task<IMembershipTable> GetMembershipTable() { if (membershipTable == null) { var factory = new MembershipFactory(); membershipTable = factory.GetMembershipTable(Silo.CurrentSilo.GlobalConfig.LivenessType, Silo.CurrentSilo.GlobalConfig.MembershipTableAssembly); await membershipTable.InitializeMembershipTable(Silo.CurrentSilo.GlobalConfig, false, TraceLogger.GetLogger(membershipTable.GetType().Name)); } return membershipTable; }
private async Task<IMembershipTable> GetMembershipTable() { if (membershipTable == null) { var factory = new MembershipFactory((IInternalGrainFactory)this.GrainFactory); membershipTable = factory.GetMembershipTable(Silo.CurrentSilo.GlobalConfig); await membershipTable.InitializeMembershipTable(Silo.CurrentSilo.GlobalConfig, false, LogManager.GetLogger(membershipTable.GetType().Name)); } return membershipTable; }