Beispiel #1
0
        /// <summary>
        /// Initialize a new instance of <see cref="XdsResponseItem"/> with response type ...
        /// </summary>
        /// <param name="responseKind">Response type</param>
        /// <param name="requestId">request id</param>
        /// <param name="sequenceId">sequence id (요청에 여러개의 parameter set이 있는 경우)</param>
        public XdsResponseItem(XmlDataResponseKind responseKind, int requestId, int sequenceId)
        {
            InitFields();

            ResponseKind = responseKind;
            RequestId    = requestId;
            SequenceId   = sequenceId;
        }
Beispiel #2
0
        /// <summary>
        /// Add new <see cref="XdsResponseItem"/>  with response type, request id, sequence id
        /// </summary>
        /// <param name="responseKind">response type</param>
        /// <param name="requestId">request id</param>
        /// <param name="sequenceId">sequece id of the specified request.</param>
        /// <returns>new instance of <see cref="XdsResponseItem"/></returns>
        public virtual XdsResponseItem AddResponseItem(XmlDataResponseKind responseKind, int requestId, int sequenceId)
        {
            if (IsDebugEnabled)
            {
                log.Debug(@"Add new XdsResponseItem. responseKind=[{0}], requestId=[{1}], sequenceId=[{2}]",
                          responseKind, requestId, sequenceId);
            }

            var item = new XdsResponseItem(responseKind, requestId, sequenceId);

            AddResponseItem(item);
            return(item);
        }
 /// <summary>
 /// Add new <see cref="XdsResponseItem"/>  with response type, request id, sequence id
 /// </summary>
 /// <param name="responseKind">response type</param>
 /// <param name="requestId">request id</param>
 /// <param name="sequenceId">sequece id of the specified request.</param>
 /// <returns>new instance of <see cref="XdsResponseItem"/></returns>
 public XdsResponseItem AddResponseItem(XmlDataResponseKind responseKind, int requestId, int sequenceId) {
     return Responses.AddResponseItem(responseKind, requestId, sequenceId);
 }
 /// <summary>
 /// Add new <see cref="XdsResponseItem"/>  with response type, request id, sequence id
 /// </summary>
 /// <param name="responseKind">response type</param>
 /// <param name="requestId">request id</param>
 /// <param name="sequenceId">sequece id of the specified request.</param>
 /// <returns>new instance of <see cref="XdsResponseItem"/></returns>
 public XdsResponseItem AddResponseItem(XmlDataResponseKind responseKind, int requestId, int sequenceId)
 {
     return(Responses.AddResponseItem(responseKind, requestId, sequenceId));
 }
Beispiel #5
0
 /// <summary>
 /// Add procedure to execute with <see cref="XmlDataResponseKind"/>	and paging
 /// </summary>
 /// <param name="spName">procedure name</param>
 /// <param name="responseKind">response type</param>
 /// <param name="pageSize">page size</param>
 /// <param name="pageNo">page number (start from 1)</param>
 /// <returns>request index</returns>
 public int AddStoredProc(string spName, XmlDataResponseKind responseKind, int pageSize, int pageNo)
 {
     return(Requests.AddStoredProc(spName, responseKind, pageSize, pageNo));
 }
Beispiel #6
0
 /// <summary>
 /// 서버에서 수행할 Method name 을 요청문서에 등록한다.
 /// </summary>
 /// <param name="method">method name to execute</param>
 /// <param name="responseKind">response type</param>
 /// <param name="pageSize">page size</param>
 /// <param name="pageNo">page number (start with 1)</param>
 /// <returns>index of added <see cref="XdsRequestItem"/></returns>
 public virtual int AddMethod(string method, XmlDataResponseKind responseKind, int pageSize, int pageNo)
 {
     return(AddRequestItem(method, XmlDataRequestKind.Method, responseKind, pageSize, pageNo));
 }
Beispiel #7
0
 /// <summary>
 /// 서버에서 수행할 Procudure Name 을 요청문서에 등록한다.
 /// </summary>
 /// <param name="spName">Procedure name</param>
 /// <param name="responseKind">response type</param>
 /// <param name="pageSize">page size</param>
 /// <param name="pageNo">page number (start with 1)</param>
 /// <returns>index of added <see cref="XdsRequestItem"/></returns>
 public int AddStoredProc(string spName, XmlDataResponseKind responseKind, int pageSize, int pageNo)
 {
     return(AddRequestItem(spName, XmlDataRequestKind.StoredProc, responseKind, pageSize, pageNo));
 }
Beispiel #8
0
 /// <summary>
 /// 서버에서 수행할 쿼리문을 요청문서에 등록한다.
 /// </summary>
 /// <param name="query">simple query string to execute</param>
 /// <param name="responseKind">response type</param>
 /// <param name="pageSize">page size</param>
 /// <param name="pageNo">page number (start with 1)</param>
 /// <returns>index of added <see cref="XdsRequestItem"/></returns>
 public int AddQuery(string query, XmlDataResponseKind responseKind, int pageSize, int pageNo)
 {
     return(AddRequestItem(query, XmlDataRequestKind.Query, responseKind, pageSize, pageNo));
 }
Beispiel #9
0
 /// <summary>
 /// Add procedure to execute with <see cref="XmlDataResponseKind"/>
 /// </summary>
 /// <param name="spName">procedure name</param>
 /// <param name="responseKind">response type</param>
 /// <returns>request index</returns>
 public int AddStoredProc(string spName, XmlDataResponseKind responseKind)
 {
     return(Requests.AddStoredProc(spName, responseKind));
 }
Beispiel #10
0
 /// <summary>
 /// Add procedure to execute with <see cref="XmlDataResponseKind"/>	and paging
 /// </summary>
 /// <param name="spName">procedure name</param>
 /// <param name="responseKind">response type</param>
 /// <param name="pageSize">page size</param>
 /// <param name="pageNo">page number (start from 1)</param>
 /// <returns>request index</returns>
 public int AddStoredProc(string spName, XmlDataResponseKind responseKind, int pageSize, int pageNo) {
     return Requests.AddStoredProc(spName, responseKind, pageSize, pageNo);
 }
Beispiel #11
0
 /// <summary>
 /// Add simple query string to execute with response type.
 /// </summary>
 /// <param name="query">simple query string</param>
 /// <param name="responseKind">response type</param>
 /// <returns>request index</returns>
 public int AddQuery(string query, XmlDataResponseKind responseKind) {
     return Requests.AddQuery(query, responseKind);
 }
Beispiel #12
0
 /// <summary>
 /// Add simple query string to execute with response type and paging
 /// </summary>
 /// <param name="query">simple query string</param>
 /// <param name="responseKind">response type</param>
 /// <param name="pageSize">page size</param>
 /// <param name="pageNo">page number (start from 1)</param>
 /// <returns>request index</returns>
 public int AddQuery(string query, XmlDataResponseKind responseKind, int pageSize, int pageNo) {
     return Requests.AddQuery(query, responseKind, pageSize, pageNo);
 }
Beispiel #13
0
 /// <summary>
 /// Add method name to execute
 /// </summary>
 /// <param name="method">method name</param>
 /// <param name="responseKind">response type</param>
 /// <returns>request index</returns>
 public int AddMethod(string method, XmlDataResponseKind responseKind) {
     return Requests.AddMethod(method, responseKind);
 }
Beispiel #14
0
 /// <summary>
 /// Add method name to execute
 /// </summary>
 /// <param name="method">method name</param>
 /// <param name="responseKind">response type</param>
 /// <param name="pageSize">page size</param>
 /// <param name="pageNo">page number (start from 1)</param>
 /// <returns>request index</returns>
 public int AddMethod(string method, XmlDataResponseKind responseKind, int pageSize, int pageNo) {
     return Requests.AddMethod(method, responseKind, pageSize, pageNo);
 }
Beispiel #15
0
 /// <summary>
 /// Add procedure to execute with <see cref="XmlDataResponseKind"/>
 /// </summary>
 /// <param name="spName">procedure name</param>
 /// <param name="responseKind">response type</param>
 /// <returns>request index</returns>
 public int AddStoredProc(string spName, XmlDataResponseKind responseKind) {
     return Requests.AddStoredProc(spName, responseKind);
 }
Beispiel #16
0
        /// <summary>
        /// 서버에서 수행할 쿼리문을 요청문서에 등록한다.
        /// </summary>
        /// <param name="query">simple query string to execute</param>
        /// <param name="requestKind">request type</param>
        /// <param name="responseKind">response type</param>
        /// <param name="pageSize">page size</param>
        /// <param name="pageNo">page number (start with 1)</param>
        /// <returns>index of added <see cref="XdsRequestItem"/></returns>
        public virtual int AddRequestItem(string query, XmlDataRequestKind requestKind, XmlDataResponseKind responseKind,
                                          int pageSize, int pageNo)
        {
            if (IsDebugEnabled)
            {
                log.Debug(@"Add new Request Item. query=[{0}], requestKind=[{1}], responseKind=[{2}], pageSize=[{3}], pageNo=[{4}]",
                          query, requestKind, responseKind, pageSize, pageNo);
            }

            var request = new XdsRequestItem
            {
                Query        = query,
                RequestKind  = requestKind,
                ResponseKind = responseKind,
                PageSize     = pageSize,
                PageNo       = pageNo
            };

            lock (this) {
                request.Id = Count;
                Add(request);
            }

            return(request.Id);
        }
Beispiel #17
0
 /// <summary>
 /// 서버에서 수행할 쿼리문을 요청문서에 등록한다.
 /// </summary>
 /// <param name="query">simple query string to execute</param>
 /// <param name="requestKind">request type</param>
 /// <param name="responseKind">response type</param>
 /// <returns>index of added <see cref="XdsRequestItem"/></returns>
 public int AddRequestItem(string query, XmlDataRequestKind requestKind, XmlDataResponseKind responseKind)
 {
     return(AddRequestItem(query, requestKind, responseKind, MsgConsts.NO_PAGE_INDEX, MsgConsts.NO_PAGE_INDEX));
 }
Beispiel #18
0
 /// <summary>
 /// Add method name to execute
 /// </summary>
 /// <param name="method">method name</param>
 /// <param name="responseKind">response type</param>
 /// <param name="pageSize">page size</param>
 /// <param name="pageNo">page number (start from 1)</param>
 /// <returns>request index</returns>
 public int AddMethod(string method, XmlDataResponseKind responseKind, int pageSize, int pageNo)
 {
     return(Requests.AddMethod(method, responseKind, pageSize, pageNo));
 }
Beispiel #19
0
 /// <summary>
 /// 서버에서 수행할 쿼리문을 요청문서에 등록한다.
 /// </summary>
 /// <param name="query">simple query string to execute</param>
 /// <param name="responseKind">response type</param>
 /// <returns>index of added <see cref="XdsRequestItem"/></returns>
 public virtual int AddQuery(string query, XmlDataResponseKind responseKind)
 {
     return(AddQuery(query, responseKind, MsgConsts.NO_PAGE_INDEX, MsgConsts.NO_PAGE_INDEX));
 }
Beispiel #20
0
 /// <summary>
 /// Add method name to execute
 /// </summary>
 /// <param name="method">method name</param>
 /// <param name="responseKind">response type</param>
 /// <returns>request index</returns>
 public int AddMethod(string method, XmlDataResponseKind responseKind)
 {
     return(Requests.AddMethod(method, responseKind));
 }
Beispiel #21
0
 /// <summary>
 /// 서버에서 수행할 Procudure Name 을 요청문서에 등록한다.
 /// </summary>
 /// <param name="spName">Procedure name</param>
 /// <param name="responseKind">response type</param>
 /// <returns>index of added <see cref="XdsRequestItem"/></returns>
 public virtual int AddStoredProc(string spName, XmlDataResponseKind responseKind)
 {
     return(AddStoredProc(spName, responseKind, MsgConsts.NO_PAGE_INDEX, MsgConsts.NO_PAGE_INDEX));
 }
Beispiel #22
0
 /// <summary>
 /// Add simple query string to execute with response type and paging
 /// </summary>
 /// <param name="query">simple query string</param>
 /// <param name="responseKind">response type</param>
 /// <param name="pageSize">page size</param>
 /// <param name="pageNo">page number (start from 1)</param>
 /// <returns>request index</returns>
 public int AddQuery(string query, XmlDataResponseKind responseKind, int pageSize, int pageNo)
 {
     return(Requests.AddQuery(query, responseKind, pageSize, pageNo));
 }
Beispiel #23
0
 /// <summary>
 /// 서버에서 수행할 Method name 을 요청문서에 등록한다.
 /// </summary>
 /// <param name="method">method name to execute</param>
 /// <param name="responseKind">response type</param>
 /// <returns>index of added <see cref="XdsRequestItem"/></returns>
 public virtual int AddMethod(string method, XmlDataResponseKind responseKind)
 {
     return(AddMethod(method, responseKind, MsgConsts.NO_PAGE_INDEX, MsgConsts.NO_PAGE_INDEX));
 }
Beispiel #24
0
 /// <summary>
 /// Add simple query string to execute with response type.
 /// </summary>
 /// <param name="query">simple query string</param>
 /// <param name="responseKind">response type</param>
 /// <returns>request index</returns>
 public int AddQuery(string query, XmlDataResponseKind responseKind)
 {
     return(Requests.AddQuery(query, responseKind));
 }