internal static ConsumerAssociationConfigurationWrapper GetDefault(DataSetConfigurationWrapper dataSet)
        {
            ConsumerAssociationConfiguration _newConsumerAssociation = new ConsumerAssociationConfiguration()
            {
                AssociationName = dataSet.AssociationName,
                DataSetWriterId = dataSet.DefaultDataSetWriterId,
                PublisherId     = dataSet.Id,
            };

            return(new ConsumerAssociationConfigurationWrapper(_newConsumerAssociation));
        }
示例#2
0
        internal static ProducerAssociationConfigurationWrapper GetDefault(DataSetConfigurationWrapper dataset)
        {
            ProducerAssociationConfiguration _producerAssociation = new ProducerAssociationConfiguration()
            {
                AssociationName = dataset.AssociationName,
                DataSetWriterId = 0,
                PublisherId     = dataset.Id,
                FieldEncoding   = FieldEncodingEnum.CompressedFieldEncoding,
            };

            return(new ProducerAssociationConfigurationWrapper(_producerAssociation));
        }
示例#3
0
 /// <summary>
 /// Checks if the selected <paramref name="dataSet" /> is associated (handled) by this instance and returns
 /// description of this association as an instance of <see cref="IAssociationConfigurationWrapper" />.
 /// </summary>
 /// <param name="dataSet">The dataset to be checked against association.</param>
 /// <returns>If associated returns an instance of <see cref="IAssociationConfigurationWrapper" />.</returns>
 public abstract IAssociationConfigurationWrapper Check(DataSetConfigurationWrapper dataSet);
示例#4
0
 /// <summary>
 /// Checks if the selected <paramref name="dataSet" /> is associated (handled) by this instance and returns
 /// description of this association as an instance of <see cref="IAssociationConfigurationWrapper" />.
 /// </summary>
 /// <param name="dataSet">The dataset to be checked against association.</param>
 /// <returns>If associated returns an instance of <see cref="IAssociationConfigurationWrapper" />.</returns>
 public override IAssociationConfigurationWrapper Check(DataSetConfigurationWrapper dataSet)
 {
     return(AssociationConfiguration.Where <ProducerAssociationConfigurationWrapper>(x => x.AssociationName == dataSet.AssociationName).FirstOrDefault <ProducerAssociationConfigurationWrapper>());
 }