コード例 #1
0
        public EnforceReceiverFriendValidator(Feature feature, IFeatureChain currentChain) : base(feature, currentChain)
        {
            var friendChainIndex = (uint)currentChain.GetLongOption(FeatureId, EnforceReceiverFriendFeature.FriendChainIndexOption, 0);

            _friendChain = CurrentChain.FeatureHost.GetDataChain(friendChainIndex);
            if (_friendChain == null)
            {
                throw new Exception("_friendChain is null");
            }
        }
コード例 #2
0
        public GroupChainHandler(IFeatureChain currentChain, Feature feature) : base(currentChain, feature)
        {
            var groupAdminChainIndex = (uint)currentChain.GetLongOption(FeatureId, GroupFeature.GroupAdministrationChainIndexOption, 0);

            GroupAdministrationChainHandler = CurrentChain.FeatureHost.GetDataChain(groupAdminChainIndex).GetFeatureChainHandler <GroupAdministrationChainHandler>(GroupAdministration.FeatureId);
            if (GroupAdministrationChainHandler == null)
            {
                throw new Exception("_groupAdministrationChainHandler is null");
            }
        }