當前位置: 首頁>>代碼示例>>C#>>正文


C# ActivityParameterDictionary類代碼示例

本文整理匯總了C#中ActivityParameterDictionary的典型用法代碼示例。如果您正苦於以下問題:C# ActivityParameterDictionary類的具體用法?C# ActivityParameterDictionary怎麽用?C# ActivityParameterDictionary使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ActivityParameterDictionary類屬於命名空間,在下文中一共展示了ActivityParameterDictionary類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的ActivityParameterDictionary類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。