Aspose.Tasks for C++
WebRequestEventArgs.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="WebRequestEventArgs.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/eventargs.h>
9 
10 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
11 
12 namespace Aspose
13 {
14 namespace Tasks
15 {
16 namespace IO
17 {
18 namespace Pwa
19 {
20 class ProjectServerConnection;
21 } // namespace Pwa
22 } // namespace IO
23 } // namespace Tasks
24 } // namespace Aspose
25 namespace System
26 {
27 namespace Net
28 {
29 class HttpWebRequest;
30 } // namespace Net
31 } // namespace System
32 
33 namespace Aspose {
34 
35 namespace Tasks {
36 
37 /// <summary>
38 /// Provides arguments for the event that is raised when the client sends a web request to the Project Server's web API.
39 /// </summary>
40 class ASPOSE_TASKS_SHARED_CLASS WebRequestEventArgs final : public System::EventArgs
41 {
43  typedef System::EventArgs BaseType;
44 
45  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
46  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
47 
48  friend class Aspose::Tasks::IO::Pwa::ProjectServerConnection;
49 
50 public:
51 
52  /// <summary>
53  /// Gets a web request to sent to the Project Server's web API.
54  /// </summary>
55  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Net::HttpWebRequest>& get_WebRequest() const;
56 
57 protected:
58 
59  ASPOSE_TASKS_SHARED_API WebRequestEventArgs(const System::SharedPtr<System::Net::HttpWebRequest>& webRequest);
60 
61  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(WebRequestEventArgs, CODEPORTING_ARGS(const System::SharedPtr<System::Net::HttpWebRequest>& webRequest));
62  #ifdef ASPOSE_GET_SHARED_MEMBERS
63  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
64  #endif
65 
66 
67 private:
68 
69  System::SharedPtr<System::Net::HttpWebRequest> pr_WebRequest;
70 
71  /// <summary>
72  /// Gets a web request to sent to the Project Server's web API.
73  /// </summary>
74  ASPOSE_TASKS_SHARED_API void set_WebRequest(const System::SharedPtr<System::Net::HttpWebRequest>& value);
75 
76 };
77 
78 } // namespace Tasks
79 } // namespace Aspose
80 
81 
Provides arguments for the event that is raised when the client sends a web request to the Project Se...
Definition: WebRequestEventArgs.h:41
const System::SharedPtr< System::Net::HttpWebRequest > & get_WebRequest() const
Gets a web request to sent to the Project Server's web API.
Definition: Asn.h:13