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