10 references to RunAsync
Microsoft.CodeAnalysis.CSharp.Scripting (2)
CSharpScript.cs (2)
114return RunAsync<object>(code, options, globals, globalsType, cancellationToken); 130return RunAsync<T>(code, options, globals, globalsType, cancellationToken).GetEvaluationResultAsync();
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
InteractiveSessionReferencesTests.cs (2)
186var s0 = await CSharpScript.RunAsync<Process>($@" 501var s0 = await CSharpScript.RunAsync<int>("x", options, new C());
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (6)
InteractiveSessionTests.cs (6)
1043var s1 = await CSharpScript.RunAsync<int[]>("new int[] { 1,2,3,4,5,6 }", ScriptOptions); 1436CSharpScript.RunAsync<C<int>>("null", ScriptOptions); 1455CSharpScript.RunAsync<int>("null", ScriptOptions); 1468CSharpScript.RunAsync<string>("1+1", ScriptOptions); 1531var s0 = CSharpScript.RunAsync<int>("x + Y + Z()", options: ScriptOptions, globals: c); 1556var s0 = await CSharpScript.RunAsync<int>("Z()", options: ScriptOptions, globals: c, globalsType: typeof(I));