FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ServiceStack/src/ServiceStack.Common/MetadataTypes.cs at master · csharpbuilder/ServiceStack · GitHub
csharpbuilder
/
ServiceStack
Public
forked from
ServiceStack/ServiceStack
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
ServiceStack
/
src
/
ServiceStack.Common
/
MetadataTypes.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
215 lines (190 loc) · 8.06 KB
Breadcrumbs
ServiceStack
/
src
/
ServiceStack.Common
/
MetadataTypes.cs
Copy path
File metadata and controls
215 lines (190 loc) · 8.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Runtime
.
Serialization
;
using
ServiceStack
.
DataAnnotations
;
namespace
ServiceStack
{
public
class
MetadataTypesConfig
{
public
MetadataTypesConfig
(
string
baseUrl
=
null
,
bool
makePartial
=
true
,
bool
makeVirtual
=
true
,
bool
addReturnMarker
=
true
,
bool
convertDescriptionToComments
=
true
,
bool
addDataContractAttributes
=
false
,
bool
addIndexesToDataMembers
=
false
,
bool
addGeneratedCodeAttributes
=
false
,
string
addDefaultXmlNamespace
=
null
,
string
baseClass
=
null
,
string
package
=
null
,
bool
addResponseStatus
=
false
,
bool
addServiceStackTypes
=
true
,
bool
addModelExtensions
=
true
,
bool
addPropertyAccessors
=
true
,
bool
excludeGenericBaseTypes
=
false
,
bool
settersReturnThis
=
true
,
bool
makePropertiesOptional
=
true
,
bool
makeDataContractsExtensible
=
false
,
bool
initializeCollections
=
true
,
int
?
addImplicitVersion
=
null
)
{
BaseUrl
=
baseUrl
;
MakePartial
=
makePartial
;
MakeVirtual
=
makeVirtual
;
AddReturnMarker
=
addReturnMarker
;
AddDescriptionAsComments
=
convertDescriptionToComments
;
AddDataContractAttributes
=
addDataContractAttributes
;
AddDefaultXmlNamespace
=
addDefaultXmlNamespace
;
BaseClass
=
baseClass
;
Package
=
package
;
MakeDataContractsExtensible
=
makeDataContractsExtensible
;
AddIndexesToDataMembers
=
addIndexesToDataMembers
;
AddGeneratedCodeAttributes
=
addGeneratedCodeAttributes
;
InitializeCollections
=
initializeCollections
;
AddResponseStatus
=
addResponseStatus
;
AddServiceStackTypes
=
addServiceStackTypes
;
AddModelExtensions
=
addModelExtensions
;
AddPropertyAccessors
=
addPropertyAccessors
;
ExcludeGenericBaseTypes
=
excludeGenericBaseTypes
;
SettersReturnThis
=
settersReturnThis
;
MakePropertiesOptional
=
makePropertiesOptional
;
AddImplicitVersion
=
addImplicitVersion
;
}
public
string
BaseUrl
{
get
;
set
;
}
public
bool
MakePartial
{
get
;
set
;
}
public
bool
MakeVirtual
{
get
;
set
;
}
public
bool
MakeInternal
{
get
;
set
;
}
public
string
BaseClass
{
get
;
set
;
}
public
string
Package
{
get
;
set
;
}
public
bool
AddReturnMarker
{
get
;
set
;
}
public
bool
AddDescriptionAsComments
{
get
;
set
;
}
public
bool
AddDataContractAttributes
{
get
;
set
;
}
public
bool
AddIndexesToDataMembers
{
get
;
set
;
}
public
bool
AddGeneratedCodeAttributes
{
get
;
set
;
}
public
int
?
AddImplicitVersion
{
get
;
set
;
}
public
bool
AddResponseStatus
{
get
;
set
;
}
public
bool
AddServiceStackTypes
{
get
;
set
;
}
public
bool
AddModelExtensions
{
get
;
set
;
}
public
bool
AddPropertyAccessors
{
get
;
set
;
}
public
bool
ExcludeGenericBaseTypes
{
get
;
set
;
}
public
bool
SettersReturnThis
{
get
;
set
;
}
public
bool
MakePropertiesOptional
{
get
;
set
;
}
public
bool
ExportAsTypes
{
get
;
set
;
}
public
bool
ExcludeImplementedInterfaces
{
get
;
set
;
}
public
string
AddDefaultXmlNamespace
{
get
;
set
;
}
public
bool
MakeDataContractsExtensible
{
get
;
set
;
}
public
bool
InitializeCollections
{
get
;
set
;
}
public
List
<
string
>
AddNamespaces
{
get
;
set
;
}
public
List
<
string
>
DefaultNamespaces
{
get
;
set
;
}
public
List
<
string
>
DefaultImports
{
get
;
set
;
}
public
List
<
string
>
IncludeTypes
{
get
;
set
;
}
public
List
<
string
>
ExcludeTypes
{
get
;
set
;
}
public
List
<
string
>
TreatTypesAsStrings
{
get
;
set
;
}
public
bool
ExportValueTypes
{
get
;
set
;
}
public
string
GlobalNamespace
{
get
;
set
;
}
public
bool
ExcludeNamespace
{
get
;
set
;
}
public
HashSet
<
Type
>
IgnoreTypes
{
get
;
set
;
}
public
HashSet
<
Type
>
ExportTypes
{
get
;
set
;
}
public
HashSet
<
Type
>
ExportAttributes
{
get
;
set
;
}
public
List
<
string
>
IgnoreTypesInNamespaces
{
get
;
set
;
}
}
[
Exclude
(
Feature
.
Soap
)
]
public
class
MetadataTypes
{
public
MetadataTypes
(
)
{
Types
=
new
List
<
MetadataType
>
(
)
;
Operations
=
new
List
<
MetadataOperationType
>
(
)
;
Namespaces
=
new
List
<
string
>
(
)
;
}
public
MetadataTypesConfig
Config
{
get
;
set
;
}
public
List
<
string
>
Namespaces
{
get
;
set
;
}
public
List
<
MetadataType
>
Types
{
get
;
set
;
}
public
List
<
MetadataOperationType
>
Operations
{
get
;
set
;
}
}
public
class
MetadataOperationType
{
public
List
<
string
>
Actions
{
get
;
set
;
}
public
MetadataType
Request
{
get
;
set
;
}
public
MetadataType
Response
{
get
;
set
;
}
}
public
class
MetadataType
:
IMeta
{
public
string
Name
{
get
;
set
;
}
public
string
Namespace
{
get
;
set
;
}
public
string
[
]
GenericArgs
{
get
;
set
;
}
public
MetadataTypeName
Inherits
{
get
;
set
;
}
public
MetadataTypeName
[
]
Implements
{
get
;
set
;
}
public
string
DisplayType
{
get
;
set
;
}
public
string
Description
{
get
;
set
;
}
public
bool
ReturnVoidMarker
{
get
;
set
;
}
public
bool
?
IsNested
{
get
;
set
;
}
public
bool
?
IsEnum
{
get
;
set
;
}
public
bool
?
IsEnumInt
{
get
;
set
;
}
public
bool
?
IsInterface
{
get
;
set
;
}
public
bool
?
IsAbstract
{
get
;
set
;
}
public
MetadataTypeName
ReturnMarkerTypeName
{
get
;
set
;
}
public
List
<
MetadataRoute
>
Routes
{
get
;
set
;
}
public
MetadataDataContract
DataContract
{
get
;
set
;
}
public
List
<
MetadataPropertyType
>
Properties
{
get
;
set
;
}
public
List
<
MetadataAttribute
>
Attributes
{
get
;
set
;
}
public
List
<
MetadataTypeName
>
InnerTypes
{
get
;
set
;
}
public
List
<
string
>
EnumNames
{
get
;
set
;
}
public
List
<
string
>
EnumValues
{
get
;
set
;
}
public
Dictionary
<
string
,
string
>
Meta
{
get
;
set
;
}
public
string
GetFullName
(
)
=>
Namespace
+
"."
+
Name
;
}
public
class
MetadataTypeName
{
public
string
Name
{
get
;
set
;
}
public
string
Namespace
{
get
;
set
;
}
public
string
[
]
GenericArgs
{
get
;
set
;
}
}
public
class
MetadataRoute
{
public
string
Path
{
get
;
set
;
}
public
string
Verbs
{
get
;
set
;
}
public
string
Notes
{
get
;
set
;
}
public
string
Summary
{
get
;
set
;
}
}
public
class
MetadataDataContract
{
public
string
Name
{
get
;
set
;
}
public
string
Namespace
{
get
;
set
;
}
}
public
class
MetadataDataMember
{
public
string
Name
{
get
;
set
;
}
public
int
?
Order
{
get
;
set
;
}
public
bool
?
IsRequired
{
get
;
set
;
}
public
bool
?
EmitDefaultValue
{
get
;
set
;
}
}
public
class
MetadataPropertyType
{
public
string
Name
{
get
;
set
;
}
public
string
Type
{
get
;
set
;
}
public
bool
?
IsValueType
{
get
;
set
;
}
public
bool
?
IsSystemType
{
get
;
set
;
}
public
bool
?
IsEnum
{
get
;
set
;
}
public
string
TypeNamespace
{
get
;
set
;
}
public
string
[
]
GenericArgs
{
get
;
set
;
}
public
string
Value
{
get
;
set
;
}
public
string
Description
{
get
;
set
;
}
public
MetadataDataMember
DataMember
{
get
;
set
;
}
public
bool
?
ReadOnly
{
get
;
set
;
}
public
string
ParamType
{
get
;
set
;
}
public
string
DisplayType
{
get
;
set
;
}
public
bool
?
IsRequired
{
get
;
set
;
}
public
string
[
]
AllowableValues
{
get
;
set
;
}
public
int
?
AllowableMin
{
get
;
set
;
}
public
int
?
AllowableMax
{
get
;
set
;
}
public
List
<
MetadataAttribute
>
Attributes
{
get
;
set
;
}
}
public
class
MetadataAttribute
{
public
string
Name
{
get
;
set
;
}
public
List
<
MetadataPropertyType
>
ConstructorArgs
{
get
;
set
;
}
public
List
<
MetadataPropertyType
>
Args
{
get
;
set
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL