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"); } }
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"); } }