Esempio n. 1
0
        protected virtual IIndexer SpreadOptions()
        {
            ConnectionModel = ConnectionRepository.GetById(GetIndexModel().SourceConnectionId.ToString());
            var connectionOptions     = ConnectionRepository.LoadOptions(ConnectionModel.Id.ToString());
            var connectionOptionItems = connectionOptions.Select(c => new OptionItem {
                Name = c.Key, Value = c.Value
            });

            Adapter.SetOptions(connectionOptionItems);
            Provider.SetOptions(connectionOptionItems);
            return(this);
        }
Esempio n. 2
0
        protected virtual IMapper SpreadOptions()
        {
            ConnectionModel = ConnectionRepository.GetById(EntityModel.DestinationConnectionId.ToString());
            var connectionOptions     = ConnectionRepository.LoadOptions(ConnectionModel.Id.ToString());
            var connectionOptionItems = connectionOptions.Select(c => new OptionItem {
                Name = c.Key, Value = c.Value
            });

            Adapter.SetOptions(connectionOptionItems);
            Provider.SetOptions(connectionOptionItems);
            return(this);
        }
Esempio n. 3
0
        virtual IPusher SpreadOptions()
        {
            var indexModel = GetIndexModel();

            ConnectionModel = ConnectionRepository.GetById(indexModel.DestinationConnectionId.ToString());
            var connectionOptions     = ConnectionRepository.LoadOptions(ConnectionModel.Id.ToString());
            var connectionOptionItems = connectionOptions.Select(c => new OptionItem {
                Name = c.Key, Value = c.Value
            });

            Adapter.SetOptions(connectionOptionItems);
            Provider.SetOptions(connectionOptionItems);
            return(this);
        }
Esempio n. 4
0
 public virtual IOptionManager SetOptions(IEnumerable <OptionItem> options)
 {
     return(Provider.SetOptions(options));
 }