/// <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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
        }
Пример #5
0
 public WebMethodAttribute(bool enableSession, TransactionOption transactionOption, int cacheDuration)
     : this(enableSession, transactionOption, cacheDuration, true)
 {
 }
Пример #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;
 }