Ejemplo n.º 1
0
 internal ComponentMetaData(
     DeviceDetectionHashEngine engine,
     ComponentMetaDataSwig source)
 {
     _engine = engine;
     _source = source;
 }
Ejemplo n.º 2
0
 public ComponentCollectionSwigWrapper(
     ComponentMetaDataCollectionSwig instance,
     DeviceDetectionHashEngine engine)
 {
     _object = instance;
     _engine = engine;
 }
 public PropertyCollectionSwigWrapper(
     PropertyMetaDataCollectionSwig instance,
     DeviceDetectionHashEngine engine)
 {
     _object = instance;
     _engine = engine;
 }
Ejemplo n.º 4
0
 public void Dispose()
 {
     Pipeline.Dispose();
     Pipeline = null;
     Engine.Dispose();
     Engine = null;
 }
 public ValueCollectionSwigWrapper(
     ValueMetaDataCollectionSwig instance,
     DeviceDetectionHashEngine engine)
 {
     _object = instance;
     _engine = engine;
 }
 internal ProfileMetaData(
     DeviceDetectionHashEngine engine,
     ProfileMetaDataSwig source)
 {
     _source = source;
     _engine = engine;
 }
 /// <summary>
 /// Construct a new instance of the wrapper.
 /// </summary>
 /// <param name="logger">
 /// The logger instance to use.
 /// </param>
 /// <param name="pipeline">
 /// The Pipeline that created this data instance.
 /// </param>
 /// <param name="engine">
 /// The engine that create this data instance.
 /// </param>
 /// <param name="missingPropertyService">
 /// The <see cref="IMissingPropertyService"/> to use if a requested
 /// property does not exist.
 /// </param>
 internal DeviceDataHash(
     ILogger <AspectDataBase> logger,
     IPipeline pipeline,
     DeviceDetectionHashEngine engine,
     IMissingPropertyService missingPropertyService)
     : base(logger, pipeline, engine, missingPropertyService)
 {
 }
Ejemplo n.º 8
0
 internal ValueMetaData(DeviceDetectionHashEngine engine, ValueMetaDataSwig source)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     _source = source;
     _engine = engine;
 }
Ejemplo n.º 9
0
        public WrapperHash(FileInfo dataFile, PerformanceProfiles profile)
        {
            var builder = new DeviceDetectionHashEngineBuilder(_logger, null)
                          .SetPerformanceProfile(profile)
                          .SetUpdateMatchedUserAgent(true)
                          .SetAutoUpdate(false)
                          .SetDataFileSystemWatcher(false);

            Engine = builder
                     .Build(dataFile.FullName, false);
            Pipeline = new PipelineBuilder(_logger)
                       .AddFlowElement(Engine)
                       .Build();
        }
        internal PropertyMetaDataHash(DeviceDetectionHashEngine engine, PropertyMetaDataSwig source)
        {
            _source = source;
            _engine = engine;

            // Load property meta data
            Url = _source.getUrl();
            DisplayOrder = (byte)_source.getDisplayOrder();
            Mandatory = _source.getIsMandatory();
            List = _source.getIsList();
            Obsolete = _source.getIsObsolete();
            Show = _source.getShow();
            ShowValues = _source.getShowValues();
            Description = _source.getDescription();
            DataTiersWherePresent = _source.getDataFilesWherePresent();
            Available = _source.getAvailable();
            Category = _source.getCategory();
            Name = _source.getName();
        }
Ejemplo n.º 11
0
 public DataValidatorHash(DeviceDetectionHashEngine engine)
 {
     _engine = engine;
 }
Ejemplo n.º 12
0
 public IValueCollectionSwigWrapper getValues(
     DeviceDetectionHashEngine engine)
 {
     return(new ValueCollectionSwigWrapper(_object.getValues(), engine));
 }
Ejemplo n.º 13
0
 public IProfileCollectionSwigWrapper getProfiles(
     DeviceDetectionHashEngine engine)
 {
     return(new ProfileCollectionSwigWrapper(_object.getProfiles(), engine));
 }
Ejemplo n.º 14
0
 public IComponentCollectionSwigWrapper getComponents(
     DeviceDetectionHashEngine engine)
 {
     return(new ComponentCollectionSwigWrapper(_object.getComponents(), engine));
 }
Ejemplo n.º 15
0
 public IValueCollectionSwigWrapper getValuesForProperty(
     PropertyMetaDataSwig property,
     DeviceDetectionHashEngine engine)
 {
     return(new ValueCollectionSwigWrapper(_object.getValuesForProperty(property), engine));
 }