Merge pull request #1685 from esdrubal/touint64
[mono.git] / mcs / class / System.ServiceModel.Internals / InternalSR.cs
1 namespace System.Runtime {
2
3         internal static class InternalSR {
4                 public static string ArgumentNullOrEmpty(string paramName)
5                 {
6                         return string.Format ("{0} is null or empty");
7                 }
8                 
9                 public static string AsyncEventArgsCompletedTwice(Type t)
10                 {
11                         return string.Format ("AsyncEventArgs completed twice for {0}", t);
12                 }
13
14                 public static string AsyncEventArgsCompletionPending(Type t)
15                 {
16                         return string.Format ("AsyncEventArgs completion pending for {0}", t);
17                 }
18                 
19                 public static string BufferAllocationFailed(int size)
20                 {
21                         return string.Format ("Buffer allocation of size {0} failed", size);
22                 }
23                 
24                 public static string BufferedOutputStreamQuotaExceeded(int maxSizeQuota)
25                 {
26                         return string.Format ("Buffered output stream quota exceeded (maxSizeQuota={0})", maxSizeQuota);
27                 }
28
29                 public static string CannotConvertObject(object source, Type t)
30                 {
31                         return string.Format ("Cannot convert object {0} to {1}", source, t);
32                 }
33                 
34                 public static string EtwAPIMaxStringCountExceeded(object max)
35                 {
36                         return string.Format ("ETW API max string count exceeded {0}", max);
37                 }
38                 
39                 public static string EtwMaxNumberArgumentsExceeded(object max)
40                 {
41                         return string.Format ("ETW max number arguments exceeded {0}", max);
42                 }
43                 
44                 public static string EtwRegistrationFailed(object arg)
45                 {
46                         return string.Format ("ETW registration failed {0}", arg);
47                 }
48                 
49                 public static string FailFastMessage(string description)
50                 {
51                         return string.Format ("Fail fast: {0}", description);
52                 }
53                 
54                 public static string InvalidAsyncResultImplementation(Type t)
55                 {
56                         return string.Format ("Invalid AsyncResult implementation: {0}", t);
57                 }
58                 
59                 public static string LockTimeoutExceptionMessage (object timeout)
60                 {
61                         return string.Format ("Lock timeout {0}", timeout);
62                 }
63                 
64                 public static string ShipAssertExceptionMessage(object description)
65                 {
66                         return string.Format ("Ship assert exception {0}", description);
67                 }
68                 
69                 public static string TaskTimedOutError (object timeout)
70                 {
71                         return string.Format ("Task timed out error {0}", timeout);
72                 }
73                 
74                 public static string TimeoutInputQueueDequeue(object timeout)
75                 {
76                         return string.Format ("Timeout input queue dequeue {0}", timeout);
77                 }
78                 
79                 public static string TimeoutMustBeNonNegative(object argumentName, object timeout)
80                 {
81                         return string.Format ("Timeout must be non-negative {0} and {1}", argumentName, timeout);
82                 }
83                 
84                 public static string TimeoutMustBePositive(string argumentName, object timeout)
85                 {
86                         return string.Format ("Timeout must be positive {0} {1}", argumentName, timeout);
87                 }
88                 
89                 public static string TimeoutOnOperation(object timeout)
90                 {
91                         return string.Format ("Timeout on operation {0}", timeout);
92                 }
93                 
94                 public static string AsyncResultCompletedTwice (Type t)
95                 {
96                         return string.Format ("AsyncResult Completed Twice for {0}", t);
97                 }
98                 
99                 public const string ActionItemIsAlreadyScheduled = "Action Item Is Already Scheduled";
100                 public const string AsyncCallbackThrewException = "Async Callback Threw Exception";
101                 public const string AsyncResultAlreadyEnded = "Async Result Already Ended";
102                 public const string BadCopyToArray = "Bad Copy To Array";
103                 public const string BufferIsNotRightSizeForBufferManager = "Buffer Is Not Right Size For Buffer Manager";
104                 public const string DictionaryIsReadOnly = "Dictionary Is Read Only";
105                 public const string InvalidAsyncResult = "Invalid Async Result";
106                 public const string InvalidAsyncResultImplementationGeneric = "Invalid Async Result Implementation Generic";
107                 public const string InvalidNullAsyncResult = "Invalid Null Async Result";
108                 public const string InvalidSemaphoreExit = "Invalid Semaphore Exit";
109                 public const string KeyCollectionUpdatesNotAllowed = "Key Collection Updates Not Allowed";
110                 public const string KeyNotFoundInDictionary = "Key Not Found In Dictionary";
111                 public const string MustCancelOldTimer = "Must Cancel Old Timer";
112                 public const string NullKeyAlreadyPresent = "Null Key Already Present";
113                 public const string ReadNotSupported = "Read Not Supported";
114                 public const string SFxTaskNotStarted = "SFx Task Not Started";
115                 public const string SeekNotSupported = "Seek Not Supported";
116                 public const string ThreadNeutralSemaphoreAborted = "Thread Neutral Semaphore Aborted";
117                 public const string ValueCollectionUpdatesNotAllowed = "Value Collection Updates Not Allowed";
118                 public const string ValueMustBeNonNegative = "Value Must Be Non Negative";
119         }
120 }
121