/// <include file='doc\WebMethodAttribute.uex' path='docs/doc[@for="WebMethodAttribute.WebMethodAttribute4"]/*' />
 /// <devdoc>
 /// <para>Initializes a new instance of the <see cref='System.Web.Services.WebMethodAttribute'/>
 /// class.</para>
 /// </devdoc>
 public WebMethodAttribute(bool enableSession, TransactionOption transactionOption, int cacheDuration, bool bufferResponse)
 {
     this.enableSession     = enableSession;
     this.transactionOption = (int)transactionOption;
     this.cacheDuration     = cacheDuration;
     this.bufferResponse    = bufferResponse;
 }
Ejemplo n.º 2
0
 /// <include file='doc\WebMethodAttribute.uex' path='docs/doc[@for="WebMethodAttribute.WebMethodAttribute2"]/*' />
 /// <devdoc>
 /// <para>Initializes a new instance of the <see cref='System.Web.Services.WebMethodAttribute'/>
 /// class.</para>
 /// </devdoc>
 public WebMethodAttribute(bool enableSession, TransactionOption transactionOption)
     : this()
 {
     EnableSession              = enableSession;
     this.transactionOption     = (int)transactionOption;
     transactionOptionSpecified = true;
 }
Ejemplo n.º 3
0
 /// <include file='doc\WebMethodAttribute.uex' path='docs/doc[@for="WebMethodAttribute.WebMethodAttribute4"]/*' />
 /// <devdoc>
 /// <para>Initializes a new instance of the <see cref='System.Web.Services.WebMethodAttribute'/>
 /// class.</para>
 /// </devdoc>
 public WebMethodAttribute(bool enableSession, TransactionOption transactionOption, int cacheDuration, bool bufferResponse)
 {
     EnableSession              = enableSession;
     this.transactionOption     = (int)transactionOption;
     transactionOptionSpecified = true;
     CacheDuration              = cacheDuration;
     BufferResponse             = bufferResponse;
 }
Ejemplo n.º 4
0
        public WebMethodAttribute(bool enableSession, TransactionOption transactionOption, int cacheDuration, bool bufferResponse)
        {
            this.bufferResponse    = bufferResponse;
            this.cacheDuration     = cacheDuration;
            this.enableSession     = enableSession;
            this.transactionOption = transactionOption;

            this.description = String.Empty;
            this.messageName = String.Empty;
        }
Ejemplo n.º 5
0
 public WebMethodAttribute(bool enableSession, TransactionOption transactionOption, int cacheDuration)
     : this(enableSession, transactionOption, cacheDuration, true)
 {
 }
Ejemplo n.º 6
0
 public WebMethodAttribute(bool enableSession, TransactionOption transactionOption)
     : this(enableSession, transactionOption, 0, true)
 {
 }
 /// <include file='doc\WebMethodAttribute.uex' path='docs/doc[@for="WebMethodAttribute.WebMethodAttribute2"]/*' />
 /// <devdoc>
 /// <para>Initializes a new instance of the <see cref='System.Web.Services.WebMethodAttribute'/>
 /// class.</para>
 /// </devdoc>
 public WebMethodAttribute(bool enableSession, TransactionOption transactionOption)
     : this()
 {
     this.enableSession     = enableSession;
     this.transactionOption = (int)transactionOption;
 }