/// <summary> /// Initializes a new instance of the <see cref="MonitorService" /> class. /// </summary> /// <param name="context">The context.</param> /// <param name="pmodeSource">The pmode source.</param> /// <param name="datastoreRepository">The datastore repository.</param> /// <param name="mapperConfig">The mapper configuration.</param> public MonitorService( DatastoreContext context, IAs4PmodeSource pmodeSource, IDatastoreRepository datastoreRepository, MapperConfiguration mapperConfig) : this(context, pmodeSource, datastoreRepository, Registry.Instance.MessageBodyStore, mapperConfig) { }
/// <summary> /// Initializes a new instance of the <see cref="MonitorService" /> class. /// </summary> /// <param name="context">The context.</param> /// <param name="pmodeSource">The pmode source.</param> /// <param name="datastoreRepository">The datastore repository.</param> /// <param name="bodyStore">The body store.</param> /// <param name="mapperConfig">The mapper configuration.</param> public MonitorService( DatastoreContext context, IAs4PmodeSource pmodeSource, IDatastoreRepository datastoreRepository, IAS4MessageBodyStore bodyStore, MapperConfiguration mapperConfig) { this.context = context; this.pmodeSource = pmodeSource; this.datastoreRepository = datastoreRepository; this.bodyStore = bodyStore; this.mapperConfig = mapperConfig; }
/// <summary> /// Initializes a new instance of the <see cref="PmodeService" /> class. /// </summary> /// <param name="source">The source.</param> /// <param name="disableValidation">if set to <c>true</c> [disable validation].</param> public PmodeService(IAs4PmodeSource source, bool disableValidation = false) { this.source = source; this.disableValidation = disableValidation; }