| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ class TestDomainReload | |||
| 21 | 21 | { | |
| 22 | 22 | abstract class CrossCaller : MarshalByRefObject | |
| 23 | 23 | { | |
| 24 | - public abstract ValueType Execte(ValueType arg); | ||
| 24 | + public abstract ValueType Execute(ValueType arg); | ||
| 25 | 25 | } | |
| 26 | 26 | ||
| 27 | 27 | ||
@@ -81,7 +81,7 @@ public static void DomainReloadAndGC() | |||
| 81 | 81 | ||
| 82 | 82 | class CrossDomianObjectStep1 : CrossCaller | |
| 83 | 83 | { | |
| 84 | - public override ValueType Execte(ValueType arg) | ||
| 84 | + public override ValueType Execute(ValueType arg) | ||
| 85 | 85 | { | |
| 86 | 86 | try | |
| 87 | 87 | { | |
@@ -120,9 +120,9 @@ from Python.EmbeddingTest.Domain import MyClass | |||
| 120 | 120 | } | |
| 121 | 121 | ||
| 122 | 122 | ||
| 123 | - class CrossDomianObjectStep2 : CrossCaller | ||
| 123 | + class CrossDomainObjectStep2 : CrossCaller | ||
| 124 | 124 | { | |
| 125 | - public override ValueType Execte(ValueType arg) | ||
| 125 | + public override ValueType Execute(ValueType arg) | ||
| 126 | 126 | { | |
| 127 | 127 | // handle refering a clr object created in previous domain, | |
| 128 | 128 | // it should had been deserialized and became callable agian. | |
@@ -167,7 +167,7 @@ public override ValueType Execte(ValueType arg) | |||
| 167 | 167 | [Test] | |
| 168 | 168 | public static void CrossDomainObject() | |
| 169 | 169 | { | |
| 170 | - RunDomainReloadSteps<CrossDomianObjectStep1, CrossDomianObjectStep2>(); | ||
| 170 | + RunDomainReloadSteps<CrossDomianObjectStep1, CrossDomainObjectStep2>(); | ||
| 171 | 171 | } | |
| 172 | 172 | ||
| 173 | 173 | #endregion | |
@@ -176,7 +176,7 @@ public static void CrossDomainObject() | |||
| 176 | 176 | ||
| 177 | 177 | class ReloadClassRefStep1 : CrossCaller | |
| 178 | 178 | { | |
| 179 | - public override ValueType Execte(ValueType arg) | ||
| 179 | + public override ValueType Execute(ValueType arg) | ||
| 180 | 180 | { | |
| 181 | 181 | const string code = @" | |
| 182 | 182 | from Python.EmbeddingTest.Domain import MyClass | |
@@ -224,7 +224,7 @@ def test_obj_call(): | |||
| 224 | 224 | ||
| 225 | 225 | class ReloadClassRefStep2 : CrossCaller | |
| 226 | 226 | { | |
| 227 | - public override ValueType Execte(ValueType arg) | ||
| 227 | + public override ValueType Execute(ValueType arg) | ||
| 228 | 228 | { | |
| 229 | 229 | var module = (IntPtr)arg; | |
| 230 | 230 | using (Py.GIL()) | |
@@ -470,7 +470,7 @@ static void RunDomainReloadSteps<T1, T2>() where T1 : CrossCaller where T2 : Cro | |||
| 470 | 470 | var caller = (T1)domain.CreateInstanceAndUnwrap( | |
| 471 | 471 | typeof(T1).Assembly.FullName, | |
| 472 | 472 | typeof(T1).FullName); | |
| 473 | - arg = caller.Execte(arg); | ||
| 473 | + arg = caller.Execute(arg); | ||
| 474 | 474 | ||
| 475 | 475 | theProxy.Call("ShutdownPython"); | |
| 476 | 476 | } | |
@@ -492,7 +492,7 @@ static void RunDomainReloadSteps<T1, T2>() where T1 : CrossCaller where T2 : Cro | |||
| 492 | 492 | var caller = (T2)domain.CreateInstanceAndUnwrap( | |
| 493 | 493 | typeof(T2).Assembly.FullName, | |
| 494 | 494 | typeof(T2).FullName); | |
| 495 | - caller.Execte(arg); | ||
| 495 | + caller.Execute(arg); | ||
| 496 | 496 | theProxy.Call("ShutdownPythonCompletely"); | |
| 497 | 497 | } | |
| 498 | 498 | finally | |
| Back | FazBrowse Home | New Git URL |
0 commit comments