• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# RemoteTask类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中RemoteTask的典型用法代码示例。如果您正苦于以下问题:C# RemoteTask类的具体用法?C# RemoteTask怎么用?C# RemoteTask使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



RemoteTask类属于命名空间,在下文中一共展示了RemoteTask类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: RemoteTaskWrapper

        public RemoteTaskWrapper(RemoteTask remoteTask, IRemoteTaskServer server)
        {
            RemoteTask = remoteTask;
            this.server = server;

            result = TaskResult.Inconclusive;
        }
开发者ID:Booksbaum,项目名称:resharper-xunit,代码行数:7,代码来源:RemoteTaskWrapper.cs


示例2: OfTask

 public static TaskMessages OfTask(this IEnumerable<TaskMessage> taskMessages, RemoteTask task)
 {
     var sameTasks = from tm in taskMessages
         where Equals(tm.Task, task) && tm.Task.Id == task.Id
         select tm;
     return new TaskMessages(task, "same", sameTasks.ToList());
 }
开发者ID:EddieGarmon,项目名称:resharper-xunit,代码行数:7,代码来源:TaskMessageExtensions.cs


示例3: TaskMessages

 public TaskMessages(RemoteTask task, string taskMatchStyle, IList<TaskMessage> taskMessages)
 {
     this.task = task;
     this.taskMatchStyle = taskMatchStyle;
     messages = taskMessages.Select(tm => tm.Message).ToList();
     serverActions = taskMessages.Select(tm => tm.ServerAction).ToList();
 }
开发者ID:EddieGarmon,项目名称:resharper-xunit,代码行数:7,代码来源:TaskMessages.cs


示例4: TaskStarting

        public void TaskStarting(RemoteTask remoteTask)
        {
            Assert.NotNull(remoteTask);

            tasks.Push(remoteTask);
            TaskStartingCalls.Add(remoteTask);
        }
开发者ID:hazzik,项目名称:ReSharper.XUnitTestRunner,代码行数:7,代码来源:FakeRemoteTaskServer.cs


示例5: AssertTaskFinishedCalled

 private static void AssertTaskFinishedCalled(FakeRemoteTaskServer.TaskFinishedParameters taskFinishedCall,
                                              RemoteTask remoteTask, string message, TaskResult result)
 {
     Assert.Equal(remoteTask, taskFinishedCall.RemoteTask);
     Assert.Equal(message, taskFinishedCall.Message);
     Assert.Equal(result, taskFinishedCall.Result);
 }
开发者ID:hazzik,项目名称:ReSharper.XUnitTestRunner,代码行数:7,代码来源:NewReSharperRunnerLoggerTests.cs


示例6: Equals

        public override bool Equals(RemoteTask other)
        {
            if (other == null) return false;

            return ReferenceEquals(this, other) ||
                Equals(other as LoadContextAssemblyTask);
        }
开发者ID:pawelpabich,项目名称:storevil,代码行数:7,代码来源:RunStoryTask.cs


示例7: OfEquivalentTask

 public static TaskMessages OfEquivalentTask(this IEnumerable<TaskMessage> taskMessages, RemoteTask task)
 {
     var equivalentTasks = from tm in taskMessages
         where Equals(tm.Task, task)
         select tm;
     return new TaskMessages(task, "equal", equivalentTasks.ToList());
 }
开发者ID:EddieGarmon,项目名称:resharper-xunit,代码行数:7,代码来源:TaskMessageExtensions.cs


示例8: GetJob

        private IStorEvilJob GetJob(RemoteTask remoteTask, IScenario scenario)
        {
            InPlaceStoryRunner handler = BuildInPlaceRunner(remoteTask);
            IStoryProvider provider = new SingleScenarioStoryProvider(scenario);

            return new StorEvilJob(provider, handler);
        }
开发者ID:codereflection,项目名称:storevil,代码行数:7,代码来源:ScenarioExecutor.cs


示例9: BuildInPlaceRunner

        private InPlaceStoryRunner BuildInPlaceRunner(RemoteTask remoteTask)
        {
            _listener = new ResharperResultListener(_server, remoteTask);
            IScenarioPreprocessor preprocessor = new ScenarioPreprocessor();

            return new InPlaceStoryRunner(_listener, preprocessor, new ScenarioInterpreter(new InterpreterForTypeFactory(new ExtensionMethodHandler())), new IncludeAllFilter(), _factory );
        }
开发者ID:codereflection,项目名称:storevil,代码行数:7,代码来源:ScenarioExecutor.cs


示例10: GetFullMethodName

        public string GetFullMethodName(RemoteTask task)
        {
            var typeName = task.GetProperty<string>("TypeName");
            var shortName = task.GetProperty<string>("ShortName");

            return string.Format("{0}.{1}", typeName, shortName);
        }
开发者ID:staxmanade,项目名称:AgUnit,代码行数:7,代码来源:XUnitMethodTaskProvider.cs


示例11: TaskState

 public TaskState(RemoteTask task, TaskState parentState, string message = "Internal Error (xunit runner): No status reported", TaskResult result = TaskResult.Inconclusive)
 {
     Task = task;
     Message = message;
     Result = result;
     ParentState = parentState;
 }
开发者ID:EddieGarmon,项目名称:resharper-xunit,代码行数:7,代码来源:ReSharperRunnerLogger.cs


示例12: TaskMessage

        private TaskMessage(RemoteTask task, ServerAction serverAction, params object[] parameters)
        {
            Assert.NotNull(task);

            Task = task;
            ServerAction = serverAction;
            Message = ServerMessage.Format(serverAction, parameters);
        }
开发者ID:EddieGarmon,项目名称:resharper-xunit,代码行数:8,代码来源:TaskMessage.cs


示例13: GetDynamicElement

        public IUnitTestElement GetDynamicElement(RemoteTask remoteTask, Dictionary<RemoteTask, IUnitTestElement> tasks)
        {
            var caseTask = remoteTask as TestCaseTask;
            if (caseTask != null)
                return GetDynamicCaseElement(tasks, caseTask);

            return null;
        }
开发者ID:TylerCarlson1,项目名称:ReSharperFixieRunner,代码行数:8,代码来源:TestProvider.cs


示例14: TaskStarting

        public bool TaskStarting(RemoteTask remoteTask)
        {
            Assert.NotNull(remoteTask);

            tasks.Push(remoteTask);
            TaskStartingCalls.Add(remoteTask);

            return true;
        }
开发者ID:Eskat0n,项目名称:ReSharper.XUnitTestRunner,代码行数:9,代码来源:FakeRemoteTaskServer.cs


示例15: TaskFinished

        public void TaskFinished(RemoteTask remoteTask, string message, TaskResult result, TimeSpan duration)
        {
            Debug.Assert(result != TaskResult.Inconclusive);

            clientController.TaskFinished(remoteTask);
            if (result == TaskResult.Skipped)
                server.TaskExplain(remoteTask, message);
            if (duration >= TimeSpan.Zero)
                server.TaskDuration(remoteTask, duration);
            server.TaskFinished(remoteTask, message, result);
        }
开发者ID:bleedow,项目名称:resharper-xunit,代码行数:11,代码来源:RemoteTaskServer.cs


示例16: TaskProgress

        public bool TaskProgress(RemoteTask remoteTask, string message)
        {
            Assert.NotNull(remoteTask);
            Assert.Same(tasks.Peek(), remoteTask);

            if (!TaskProgressCalls.ContainsKey(remoteTask))
                TaskProgressCalls.Add(remoteTask, new List<string>());
            TaskProgressCalls[remoteTask].Add(message);

            return true;
        }
开发者ID:Eskat0n,项目名称:ReSharper.XUnitTestRunner,代码行数:11,代码来源:FakeRemoteTaskServer.cs


示例17: GetDynamicElement

        public IUnitTestElement GetDynamicElement(RemoteTask remoteTask, Dictionary<string, IUnitTestElement> taskIdsToElements)
        {
            var theoryTask = remoteTask as XunitTestTheoryTask;
            if (theoryTask != null)
                return GetDynamicTheoryElement(taskIdsToElements, theoryTask);

            var methodTask = remoteTask as XunitTestMethodTask;
            if (methodTask != null)
                return GetDynamicMethodElement(taskIdsToElements, methodTask);

            return null;
        }
开发者ID:Booksbaum,项目名称:resharper-xunit,代码行数:12,代码来源:XunitTestProvider.cs


示例18: GetFullMethodName

        public string GetFullMethodName(RemoteTask task)
        {
            var typeName = task.GetProperty<string>("TypeName");

            string methodName;

            try
            {
                methodName = task.GetProperty<string>("MethodName");
            }
            catch (Exception)
            {
                methodName = task.GetProperty<string>("ShortName");
            }

            return string.Format("{0}.{1}", typeName, methodName);
        }
开发者ID:icnocop,项目名称:AgUnit,代码行数:17,代码来源:XUnitMethodTaskProvider.cs


示例19: GetDynamicElement

        public IUnitTestElement GetDynamicElement(RemoteTask remoteTask, Func<string, ITestElement> elementProvider)
        {
            var dynamicTask = (DynamicTask) remoteTask;
              var parentElement = elementProvider(dynamicTask.ParentGuid);
              Trace.Assert(parentElement != null, "parentElement != null");

              var elementTypeFullName = typeof(ChildTestElement).FullName;
              var project = parentElement.GetProject().AssertNotNull();
              var entity = new TestEntitySurrogate(dynamicTask.Identity, project, new string[0], dynamicTask.Text);

              var elementFactory = project.GetComponent<ITestElementFactory>();
              var element = elementFactory.GetOrCreateTestElement(elementTypeFullName, entity, parentElement);

              // TODO: parameter for elementFactory instead?
              element.State = UnitTestElementState.Dynamic;

              return element;
        }
开发者ID:igor-toporet,项目名称:TestFx,代码行数:18,代码来源:TestProvider.cs


示例20: Execute

        public TaskResult Execute(RemoteTask remoteTask)
        {
            try
            {
                var scenario = ((RunScenarioTask) remoteTask).GetScenario();
                var job = GetJob(remoteTask, scenario);

                job.Run();

                return _listener.Result;
            }
            catch (Exception ex)
            {
                Logger.Log(ex.ToString());
                _server.TaskOutput(remoteTask, "Exception!\r\n", TaskOutputType.STDOUT);
                _server.TaskOutput(remoteTask, ex.ToString(), TaskOutputType.STDOUT);

                return TaskResult.Exception;
            }
        }
开发者ID:pawelpabich,项目名称:storevil,代码行数:20,代码来源:RemoteStoryExecutor.cs



注:本文中的RemoteTask类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# RemoveTagsRequestMarshaller类代码示例发布时间:2022-05-24
下一篇:
C# RemoteEntityWorld类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap