Exemple #1
0
        public static DistinctChannelConfigurator <TChannel, TKey> Distinct <TChannel, TKey>(
            this IntervalChannelConfigurator <TChannel> configurator, KeyAccessor <TChannel, TKey> keyAccessor)
        {
            var intervalConfigurator = new DistinctChannelConfiguratorImpl <TChannel, TKey>(keyAccessor);

            configurator.SetChannelConfigurator(intervalConfigurator);

            return(intervalConfigurator);
        }
        public static LastChannelConfigurator <TChannel> Last <TChannel>(
            this IntervalChannelConfigurator <TChannel> configurator)
        {
            var lastConfigurator = new LastChannelConfiguratorImpl <TChannel>();

            configurator.SetChannelConfigurator(lastConfigurator);

            return(lastConfigurator);
        }