コード例 #1
0
        public IStateNotifier CreateStateNotifierImpl(IDSFDataObject dsfDataObject)
        {
            var stateNotifier = new StateNotifier();

            if (dsfDataObject.Settings.EnableDetailedLogging)
            {
                _logger = new StateAuditLogger(new WebSocketFactory());
                stateNotifier.Subscribe(_logger.NewStateListener(dsfDataObject));
            }

            return(stateNotifier);
        }
コード例 #2
0
 void TestAuditSetupWithAssignedInputs(Guid resourceId, string workflowName, out IStateAuditLogger auditStateLogger, out Mock <IDev2Activity> activity, IWebSocketPool webSocketPool)
 {
     GetMockedDataObject(resourceId, workflowName, out activity, out Mock <IDSFDataObject> mockedDataObject);
     auditStateLogger = GetIAuditStateLogger(webSocketPool);
 }