コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: ManagementGrain.cs プロジェクト: jdom/orleans
        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;
        }