Exemplo n.º 1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">The type of node ("Agent" or "ZIS")</param>
 ///<param name="sifName">The descriptive name of the SIF node (i.e. Ramsey Food Services).</param>
 ///<param name="sifSourceId">The agent or ZIS identifier. This is the same value that the SIF node would place in any SIF_Header that it would create.</param>
 ///<param name="sifMode">Specifies the communication mode (Pull or Push) as chosen by the message sender.</param>
 ///<param name="sifMaxBufferSize">Specifies that the ZIS should never send packets larger than this value. Query responses from other providers are controlled by the SIF_MaxBufferSize attribute in the SIF_Request message.</param>
 ///<param name="sifSleeping">This element shows whether the SIF node is ready to process messages.</param>
 ///
 public SIF_SIFNode(SIF_SIFNodeType type, string sifName, string sifSourceId, SIFMode sifMode, int?sifMaxBufferSize, YesNo sifSleeping) : base(InfraDTD.SIF_SIFNODE)
 {
     this.SetType(type);
     this.SIF_Name     = sifName;
     this.SIF_SourceId = sifSourceId;
     this.SetSIF_Mode(sifMode);
     this.SIF_MaxBufferSize = sifMaxBufferSize;
     this.SetSIF_Sleeping(sifSleeping);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">The type of node ("Agent" or "ZIS")</param>
 ///<param name="sifName">The descriptive name of the SIF node (i.e. Ramsey Food Services).</param>
 ///<param name="sifSourceId">The agent or ZIS identifier. This is the same value that the SIF node would place in any SIF_Header that it would create.</param>
 ///<param name="sifMode">Specifies the communication mode (Pull or Push) as chosen by the message sender.</param>
 ///<param name="sifMaxBufferSize">Specifies that the ZIS should never send packets larger than this value. Query responses from other providers are controlled by the SIF_MaxBufferSize attribute in the SIF_Request message.</param>
 ///<param name="sifSleeping">This element shows whether the SIF node is ready to process messages.</param>
 ///
 public SIF_SIFNode( SIF_SIFNodeType type, string sifName, string sifSourceId, SIFMode sifMode, int? sifMaxBufferSize, YesNo sifSleeping )
     : base(InfraDTD.SIF_SIFNODE)
 {
     this.SetType( type );
     this.SIF_Name = sifName;
     this.SIF_SourceId = sifSourceId;
     this.SetSIF_Mode( sifMode );
     this.SIF_MaxBufferSize = sifMaxBufferSize;
     this.SetSIF_Sleeping( sifSleeping );
 }
Exemplo n.º 3
0
 ///<summary>Adds the value of the <c>&lt;SIF_SIFNode&gt;</c> element.</summary>
 /// <param name="Type">The type of node ("Agent" or "ZIS")</param>
 /// <param name="SifName">The descriptive name of the SIF node (i.e. Ramsey Food Services).</param>
 /// <param name="SifSourceId">The agent or ZIS identifier. This is the same value that the SIF node would place in any SIF_Header that it would create.</param>
 /// <param name="SifMode">Specifies the communication mode (Pull or Push) as chosen by the message sender.</param>
 /// <param name="SifMaxBufferSize">Specifies that the ZIS should never send packets larger than this value. Query responses from other providers are controlled by the SIF_MaxBufferSize attribute in the SIF_Request message.</param>
 /// <param name="SifSleeping">This element shows whether the SIF node is ready to process messages.</param>
 ///<remarks>
 /// <para>This form of <c>setSIF_SIFNode</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddSIF_SIFNode</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void AddSIF_SIFNode(SIF_SIFNodeType Type, string SifName, string SifSourceId, SIFMode SifMode, int?SifMaxBufferSize, YesNo SifSleeping)
 {
     AddChild(InfraDTD.SIF_SIFNODES_SIF_SIFNODE, new SIF_SIFNode(Type, SifName, SifSourceId, SifMode, SifMaxBufferSize, SifSleeping));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A SIF_SIFNodeType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The type of node ("Agent" or "ZIS")"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType( SIF_SIFNodeType val )
 {
     SetField( InfraDTD.SIF_SIFNODE_TYPE, val );
 }
Exemplo n.º 5
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A SIF_SIFNodeType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The type of node ("Agent" or "ZIS")"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType(SIF_SIFNodeType val)
 {
     SetField(InfraDTD.SIF_SIFNODE_TYPE, val);
 }