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)
1042var s1 = await CSharpScript.RunAsync<int[]>("new int[] { 1,2,3,4,5,6 }"); 1435CSharpScript.RunAsync<C<int>>("null"); 1454CSharpScript.RunAsync<int>("null"); 1467CSharpScript.RunAsync<string>("1+1"); 1530var s0 = CSharpScript.RunAsync<int>("x + Y + Z()", globals: c); 1555var s0 = await CSharpScript.RunAsync<int>("Z()", globals: c, globalsType: typeof(I));