File tree 1 file changed +66
-0
lines changed
SparkleXrmSource/SparkleXrm/ES6
1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Runtime . CompilerServices ;
4
+
5
+ namespace ES6
6
+ {
7
+ [ Imported ]
8
+ [ IgnoreNamespace ]
9
+ public class Promise
10
+ {
11
+ public Promise ( PromiseArgs promise )
12
+ {
13
+ }
14
+
15
+ public static Promise Resolve ( object value )
16
+ {
17
+ return null ;
18
+ }
19
+
20
+ [ ScriptName ( "then" ) ]
21
+ public Promise Then ( Func < object , Promise > onFulfilled )
22
+ {
23
+ return null ;
24
+ }
25
+
26
+ [ ScriptName ( "then" ) ]
27
+ public Promise Then2 ( Action < object , Promise > onFulfilled , Action < Exception > onRejected )
28
+ {
29
+ return null ;
30
+ }
31
+
32
+ [ ScriptName ( "then" ) ]
33
+ public Promise Then3 ( Action < object > onFulfilled )
34
+ {
35
+ return null ;
36
+ }
37
+
38
+ public Promise Catch ( Action < Exception > onRejected )
39
+ {
40
+ return null ;
41
+ }
42
+
43
+ public static Promise Resolve ( Promise promise )
44
+ {
45
+ return null ;
46
+ }
47
+
48
+ public static Promise Reject ( Exception error )
49
+ {
50
+ return null ;
51
+ }
52
+
53
+ public static Promise All ( List < Promise > all )
54
+ {
55
+ return null ;
56
+ }
57
+
58
+ public static Promise Race ( List < Promise > reace )
59
+ {
60
+ return null ;
61
+ }
62
+ }
63
+
64
+ [ Imported ]
65
+ public delegate void PromiseArgs ( Action < object > resolve , Action < Exception > reject ) ;
66
+ }
You can’t perform that action at this time.
0 commit comments