Merge pull request #799 from kebby/master
[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 #if NET_4_5
245                 InheritedFromHost
246 #endif
247         }
248
249         public enum HttpProxyCredentialType
250         {
251                 None,
252                 Basic,
253                 Digest,
254                 Ntlm,
255                 Windows,
256         }
257
258         public enum MessageCredentialType
259         {
260                 None,
261                 Windows,
262                 UserName,
263                 Certificate,
264                 IssuedToken,
265         }
266
267         public enum MsmqAuthenticationMode
268         {
269                 None,
270                 WindowsDomain,
271                 Certificate,
272         }
273
274         public enum MsmqEncryptionAlgorithm
275         {
276                 RC4Stream,
277                 Aes,
278         }
279
280         public enum MsmqSecureHashAlgorithm
281         {
282                 MD5,
283                 Sha1,
284                 Sha256,
285                 Sha512,
286         }
287
288         public enum QueueTransferProtocol
289         {
290                 Native,
291                 Srmp,
292                 SrmpSecure,
293         }
294
295         public enum SecurityMode
296         {
297                 None,
298                 Transport,
299                 Message,
300                 TransportWithMessageCredential,
301         }
302
303         public enum TcpClientCredentialType
304         {
305                 None,
306                 Windows,
307                 Certificate,
308         }
309 }
310
311 namespace System.ServiceModel.Channels
312 {
313         public enum MessageState
314         {
315                 Created,
316                 Read,
317                 Written,
318                 Copied,
319                 Closed,
320         }
321
322         public enum SecurityHeaderLayout
323         {
324                 Strict,
325                 Lax,
326                 LaxTimestampFirst,
327                 LaxTimestampLast,
328         }
329
330         public enum SupportedAddressingMode
331         {
332                 Anonymous,
333                 NonAnonymous,
334                 Mixed
335         }
336
337         public enum TransferSession
338         {
339                 None,
340                 Ordered,
341                 Unordered,
342         }
343
344 }
345
346 namespace System.ServiceModel.Description
347 {
348         public enum PrincipalPermissionMode
349         {
350                 None,
351                 UseWindowsGroups,
352                 UseAspNetRoles,
353                 Custom,
354         }
355
356         public enum MessageDirection
357         {
358                 Input,
359                 Output,
360         }
361
362         public enum ListenUriMode
363         {
364                 Explicit,
365                 Unique,
366         }
367
368         public enum MetadataExchangeClientMode
369         {
370                 MetadataExchange,
371                 HttpGet
372         }
373
374         [Flags]
375         public enum ServiceContractGenerationOptions
376         {
377                 None,
378                 AsynchronousMethods = 1,
379                 ChannelInterface = 2,
380                 InternalTypes = 4,
381                 ClientClass = 8,
382                 TypedMessages = 16,
383                 EventBasedAsynchronousMethods = 32,
384         }
385 }
386
387 namespace System.ServiceModel.MsmqIntegration
388 {
389         public enum MsmqIntegrationSecurityMode
390         {
391                 None,
392                 Transport,
393         }
394
395         public enum MsmqMessageSerializationFormat
396         {
397                 Xml,
398                 Binary,
399                 ActiveX,
400                 ByteArray,
401                 Stream,
402         }
403 }
404
405 namespace System.ServiceModel.Security
406 {
407         public enum UserNamePasswordValidationMode
408         {
409                 Windows,
410                 MembershipProvider,
411                 Custom,
412         }
413
414         public enum X509CertificateValidationMode
415         {
416                 None,
417                 PeerTrust,
418                 ChainTrust,
419                 PeerOrChainTrust,
420                 Custom,
421         }
422 }
423
424 namespace System.ServiceModel.Security.Tokens
425 {
426         public enum SecurityTokenInclusionMode
427         {
428                 AlwaysToRecipient,
429                 Never,
430                 Once,
431                 AlwaysToInitiator,
432         }
433
434         public enum X509KeyIdentifierClauseType
435         {
436                 Any,
437                 Thumbprint,
438                 IssuerSerial,
439                 SubjectKeyIdentifier,
440                 RawDataKeyIdentifier,
441         }
442 }