Merge pull request #496 from nicolas-raoul/unit-test-for-issue2907
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel / AllEnums.cs
1 //
2 // AllEnums.cs
3 //
4 // Author:
5 //      Atsushi Enomoto  <atsushi@ximian.com>
6 //
7 // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
8 //
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
16 // 
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
19 // 
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28 namespace System.ServiceModel.Activation
29 {
30         public enum AspNetCompatibilityRequirementsMode
31         {
32                 NotAllowed,
33                 Allowed,
34                 Required,
35         }
36 }
37
38 namespace System.ServiceModel
39 {
40         public enum AddressFilterMode
41         {
42                 Exact,
43                 Prefix,
44                 Any
45         }
46
47         public enum AuditLevel
48         {
49                 None,
50                 Success,
51                 Failure,
52                 SuccessOrFailure,
53         }
54
55         public enum AuditLogLocation
56         {
57                 Default,
58                 Application,
59                 Security,
60         }
61
62         public enum BasicHttpMessageCredentialType
63         {
64                 UserName,
65                 Certificate,
66         }
67
68         public enum BasicHttpSecurityMode
69         {
70                 None,
71                 Transport,
72                 Message,
73                 TransportWithMessageCredential,
74                 TransportCredentialOnly,
75         }
76
77 #if NET_4_5
78         public enum BasicHttpsSecurityMode
79         {
80                 Transport,
81                 TransportWithMessageCredential
82         }
83 #endif
84
85         public enum CommunicationState
86         {
87                 Created,
88                 Opening,
89                 Opened,
90                 Closing,
91                 Closed,
92                 Faulted,
93         }
94
95         public enum ConcurrencyMode
96         {
97                 Single,
98                 Reentrant,
99                 Multiple,
100         }
101
102         public enum HostNameComparisonMode
103         {
104                 StrongWildcard,
105                 Exact,
106                 WeakWildcard,
107         }
108
109         public enum ImpersonationOption
110         {
111                 NotAllowed,
112                 Allowed,
113                 Required,
114         }
115
116         public enum InstanceContextMode
117         {
118                 PerSession,
119                 PerCall,
120                 Single,
121         }
122
123         public enum NetMsmqSecurityMode
124         {
125                 None,
126                 Transport,
127                 Message,
128                 Both,
129         }
130
131         public enum NetNamedPipeSecurityMode
132         {
133                 None,
134                 Transport,
135         }
136
137         public enum OperationFormatStyle
138         {
139                 Document,
140                 Rpc,
141         }
142
143         public enum OperationFormatUse
144         {
145                 Literal,
146                 Encoded,
147         }
148
149         public enum PeerMessageOrigination
150         {
151                 Local,
152                 Remote,
153         }
154
155         public enum PeerMessagePropagation
156         {
157                 None,
158                 Local,
159                 Remote,
160                 LocalAndRemote,
161         }
162
163         public enum QueuedDeliveryRequirementsMode
164         {
165                 Allowed,
166                 Required,
167                 NotAllowed,
168         }
169
170         public enum PeerTransportCredentialType
171         {
172                 Password,
173                 Certificate,
174         }
175
176         public enum ReceiveErrorHandling
177         {
178                 Fault,
179                 Drop,
180                 Reject,
181                 Move,
182         }
183
184         public enum ReleaseInstanceMode
185         {
186                 None,
187                 BeforeCall,
188                 AfterCall,
189                 BeforeAndAfterCall,
190         }
191
192         public enum SessionMode
193         {
194                 Allowed,
195                 Required,
196                 NotAllowed,
197         }
198
199         public enum TransactionFlowOption
200         {
201                 NotAllowed,
202                 Allowed,
203                 Mandatory,
204         }
205
206         public enum WSDualHttpSecurityMode
207         {
208                 None,
209                 Message,
210         }
211
212         public enum WSFederationHttpSecurityMode
213         {
214                 None,
215                 Message,
216                 TransportWithMessageCredential,
217         }
218
219         public enum WSMessageEncoding
220         {
221                 Text,
222                 Mtom,
223         }
224
225 }
226
227 namespace System.ServiceModel // used to be S.SM.Ch
228 {
229         public enum DeadLetterQueue
230         {
231                 None,
232                 System,
233                 Custom,
234         }
235
236         public enum HttpClientCredentialType
237         {
238                 None,
239                 Basic,
240                 Digest,
241                 Ntlm,
242                 Windows,
243                 Certificate,
244         }
245
246         public enum HttpProxyCredentialType
247         {
248                 None,
249                 Basic,
250                 Digest,
251                 Ntlm,
252                 Windows,
253         }
254
255         public enum MessageCredentialType
256         {
257                 None,
258                 Windows,
259                 UserName,
260                 Certificate,
261                 IssuedToken,
262         }
263
264         public enum MsmqAuthenticationMode
265         {
266                 None,
267                 WindowsDomain,
268                 Certificate,
269         }
270
271         public enum MsmqEncryptionAlgorithm
272         {
273                 RC4Stream,
274                 Aes,
275         }
276
277         public enum MsmqSecureHashAlgorithm
278         {
279                 MD5,
280                 Sha1,
281                 Sha256,
282                 Sha512,
283         }
284
285         public enum QueueTransferProtocol
286         {
287                 Native,
288                 Srmp,
289                 SrmpSecure,
290         }
291
292         public enum SecurityMode
293         {
294                 None,
295                 Transport,
296                 Message,
297                 TransportWithMessageCredential,
298         }
299
300         public enum TcpClientCredentialType
301         {
302                 None,
303                 Windows,
304                 Certificate,
305         }
306 }
307
308 namespace System.ServiceModel.Channels
309 {
310         public enum MessageState
311         {
312                 Created,
313                 Read,
314                 Written,
315                 Copied,
316                 Closed,
317         }
318
319         public enum SecurityHeaderLayout
320         {
321                 Strict,
322                 Lax,
323                 LaxTimestampFirst,
324                 LaxTimestampLast,
325         }
326
327         public enum SupportedAddressingMode
328         {
329                 Anonymous,
330                 NonAnonymous,
331                 Mixed
332         }
333
334         public enum TransferSession
335         {
336                 None,
337                 Ordered,
338                 Unordered,
339         }
340
341 }
342
343 namespace System.ServiceModel.Description
344 {
345         public enum PrincipalPermissionMode
346         {
347                 None,
348                 UseWindowsGroups,
349                 UseAspNetRoles,
350                 Custom,
351         }
352
353         public enum MessageDirection
354         {
355                 Input,
356                 Output,
357         }
358
359         public enum ListenUriMode
360         {
361                 Explicit,
362                 Unique,
363         }
364
365         public enum MetadataExchangeClientMode
366         {
367                 MetadataExchange,
368                 HttpGet
369         }
370
371         [Flags]
372         public enum ServiceContractGenerationOptions
373         {
374                 None,
375                 AsynchronousMethods = 1,
376                 ChannelInterface = 2,
377                 InternalTypes = 4,
378                 ClientClass = 8,
379                 TypedMessages = 16,
380                 EventBasedAsynchronousMethods = 32,
381         }
382 }
383
384 namespace System.ServiceModel.MsmqIntegration
385 {
386         public enum MsmqIntegrationSecurityMode
387         {
388                 None,
389                 Transport,
390         }
391
392         public enum MsmqMessageSerializationFormat
393         {
394                 Xml,
395                 Binary,
396                 ActiveX,
397                 ByteArray,
398                 Stream,
399         }
400 }
401
402 namespace System.ServiceModel.Security
403 {
404         public enum UserNamePasswordValidationMode
405         {
406                 Windows,
407                 MembershipProvider,
408                 Custom,
409         }
410
411         public enum X509CertificateValidationMode
412         {
413                 None,
414                 PeerTrust,
415                 ChainTrust,
416                 PeerOrChainTrust,
417                 Custom,
418         }
419 }
420
421 namespace System.ServiceModel.Security.Tokens
422 {
423         public enum SecurityTokenInclusionMode
424         {
425                 AlwaysToRecipient,
426                 Never,
427                 Once,
428                 AlwaysToInitiator,
429         }
430
431         public enum X509KeyIdentifierClauseType
432         {
433                 Any,
434                 Thumbprint,
435                 IssuerSerial,
436                 SubjectKeyIdentifier,
437                 RawDataKeyIdentifier,
438         }
439 }