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

C# ActivityParameterDictionary类代码示例

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

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



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

示例1: SaveBadMarking

 public NextActivityKey SaveBadMarking( 
    WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return TryParseBlankMarking(CommonActivity.LastReadedValue, out _badMarking)
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:BadBulletinSettingsActivity.cs


示例2: Mock

 public NextActivityKey Mock( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     _logger.LogInfo(Message.Common_Information, parameters.GetParamValue("Text", "-"));
     context.Sleep(TimeSpan.FromMilliseconds(500));
     return context.DefaultNextActivityKey;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:Mock.cs


示例3: NotCanceledCandidatesMoreThenMinRequired

 public NextActivityKey NotCanceledCandidatesMoreThenMinRequired( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     var notCanceledCandidateCount = Election.Candidates.Count(cand => !cand.Disabled);
     return notCanceledCandidateCount > MinRequiredNotCanceledCandidates
         ? BpcNextActivityKeys.Yes : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:CancelCandidatesActivity.cs


示例4: SetDateTime

 public NextActivityKey SetDateTime( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     var utcDateTime = _date.AddHours(_time.Hour).AddMinutes(_time.Minute).ToUniversalTime();
     _syncManager.SetSystemTime(utcDateTime);
     return context.DefaultNextActivityKey;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:DateTimeSettingsActivity.cs


示例5: CheckControlRelations

 public NextActivityKey CheckControlRelations( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     if (!_electionManager.NeedExecuteCheckExpressions)
         return BpcNextActivityKeys.Yes;
     return Election.IsControlRelationsSatisfied() ? BpcNextActivityKeys.Yes : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:EnterAdditionalInfoActivity.cs


示例6: IsStampControlEnabled

 public NextActivityKey IsStampControlEnabled( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return _recognitionManager.StampControlEnabled
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:StampSettingsActivity.cs


示例7: GetNextDiagnosticsError

 public NextActivityKey GetNextDiagnosticsError( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     if (!_diagnosticsErrorsEnumerator.MoveNext())
         return BpcNextActivityKeys.No;
     return new NextActivityKey(_diagnosticsErrorsEnumerator.Current.ToString());
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:ConnectToScanner.cs


示例8: SaveVotingResultProtocol

 public NextActivityKey SaveVotingResultProtocol( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return _votingResultManager.SaveVotingResultProtocol()
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:SaveVotingResultsActivity.cs


示例9: IsDssEnabled

 public NextActivityKey IsDssEnabled( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return _scannerManager.DoubleSheetSensorEnabled
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:DssEnabledSettingsActivity.cs


示例10: IsVotingModeResults

 public NextActivityKey IsVotingModeResults( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return _electionManager.CurrentVotingMode == VotingMode.Results
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:PrintPreliminaryProtocolActivity.cs


示例11: CheckCanRestoreCanceledInSD

 public NextActivityKey CheckCanRestoreCanceledInSD( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     if (_electionManager.СanRestoreCandidateCanseledInSd)
         return BpcNextActivityKeys.Yes;
     return BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:CancelCandidatesActivity.cs


示例12: IsProtocolsGeneratedForAllElections

 public NextActivityKey IsProtocolsGeneratedForAllElections( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return _electionManager.SourceData.Elections.Length == _generatedProtocolElectionIds.Count
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:SummarizingActivity.cs


示例13: HasSourceDataChanged

 public NextActivityKey HasSourceDataChanged( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return _electionManager.HasSourceDataChanged
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:Common.cs


示例14: IsElectionDayNowInStateSd

 public NextActivityKey IsElectionDayNowInStateSd( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return IsIsElectionDayOrExtra(_electionManager.IsElectionDay())
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:CheckConflict.cs


示例15: IsProtocolGeneratedForCurrentElection

 public NextActivityKey IsProtocolGeneratedForCurrentElection( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return _generatedProtocolElectionIds.Contains(_currentElection.ElectionId)
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:SummarizingActivity.cs


示例16: IsElectionDayNowInStateSdOnSlaveScanner

 public NextActivityKey IsElectionDayNowInStateSdOnSlaveScanner( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return IsIsElectionDayOrExtra(_syncManager.RemoteScanner.IsElectionDay)
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:CheckConflict.cs


示例17: IsSecondScannerAlreadyConnected

 public NextActivityKey IsSecondScannerAlreadyConnected( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return _syncManager.IsRemoteScannerConnected
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:RemoteScannerSearch.cs


示例18: CheckSerialNumbersEquals

 public NextActivityKey CheckSerialNumbersEquals( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return _syncManager.LocalScannerSerialNumber == _syncManager.RemoteScannerSerialNumber
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:RemoteScannerSearch.cs


示例19: SaveLeft

 public NextActivityKey SaveLeft( 
    WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return short.TryParse(CommonActivity.LastReadedValue, out _left)
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:DssLevelSettingsActivity.cs


示例20: IsMasterScanner

 public NextActivityKey IsMasterScanner( 
     WorkflowExecutionContext context, ActivityParameterDictionary parameters)
 {
     return _syncManager.ScannerRole == ScannerRole.Master
                ? BpcNextActivityKeys.Yes
                : BpcNextActivityKeys.No;
 }
开发者ID:nico-izo,项目名称:KOIB,代码行数:7,代码来源:Common.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# ActivityType类代码示例发布时间:2022-05-24
下一篇:
C# ActivityInstance类代码示例发布时间: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