public static async Task <OrleansProjectCodeProvider> CreateFromTestAsync(IGrainFactory grainFactory, string testName, string assemblyName) { var solutionGrain = OrleansSolutionManager.GetSolutionGrain(grainFactory); var rtaGain = OrleansRtaManager.GetRtaGrain(grainFactory); var provider = new OrleansProjectCodeProvider(grainFactory, solutionGrain, rtaGain); await provider.LoadTestAsync(testName, assemblyName); return(provider); }
public static async Task <OrleansProjectCodeProvider> CreateFromProjectAsync(IGrainFactory grainFactory, string projectPath) { var solutionGrain = OrleansSolutionManager.GetSolutionGrain(grainFactory); var rtaGain = OrleansRtaManager.GetRtaGrain(grainFactory); var provider = new OrleansProjectCodeProvider(grainFactory, solutionGrain, rtaGain); await provider.LoadProjectAsync(projectPath); return(provider); }