Пример #1
0
        public static ChannelPipelineIncoming AppendResourceProfile(this ChannelPipelineIncoming cpipe
                                                                    , string profileName
                                                                    , Action <ResourceProfile> action = null)
        {
            if (string.IsNullOrEmpty(profileName))
            {
                throw new ArgumentNullException("profileName cannot be null or empty");
            }

            cpipe.AppendResourceProfile((c) => new ResourceProfile(profileName), action);

            return(cpipe);
        }
Пример #2
0
        public static ChannelPipelineIncoming AppendResourceProfile(this ChannelPipelineIncoming cpipe
                                                                    , ResourceProfile profile
                                                                    , Action <ResourceProfile> action = null)
        {
            if (profile == null)
            {
                throw new ArgumentNullException("profile cannot be null");
            }

            cpipe.AppendResourceProfile((c) => profile, action);

            return(cpipe);
        }