Пример #1
0
        public IOperationManager <TSessionState, TOperationState> CreateOperationManager(
            OperationId sessionId,
            TSessionState sessionState,
            IPropertyContainer?operationManagerMetadata = null)
        {
            ISessionManager <TSessionState, TOperationState> sessionManager = BuildSessionManager();

            IOperationManager <TSessionState, TOperationState> operationManager = new OperationManager <TSessionState, TOperationState>(
                sessionId: sessionId,
                sessionState: sessionState,
                sessionManager: sessionManager,
                executionOptions: _executionOptions,
                logger: null,
                metadata: operationManagerMetadata);

            sessionManager.AddOperationManager(operationManager);

            return(operationManager);
        }