예제 #1
0
        public Guid RegisterOperation(string readableOperationID, bool isInvokedSynchronically)
        {
            var operationId = Guid.NewGuid();
            var info        = new SingleProcessDeploymentOperationStatus(operationId, readableOperationID
                                                                         , operationRunTimeout: DefaultOperationRunTimeout
                                                                         , finalStatusRetrievalPendingTimeout: DefaultFinalStatusRetrievalPendingTimeout
                                                                         , storageAfterFinalStatusRetrievedByClientTimeout: DefaultStorageAfterFinalStatusRetrievedByClientTimeout);

            _operations.Add(operationId, info);
            Logger.LogEvent(string.Format("Operation '{0}' registered by operation manager with the ID '{1}'.", readableOperationID, operationId), this, ImportanceLevels.gUnimportant);
            return(operationId);
        }
예제 #2
0
 private void MarkOperationAsFinalStatusRetrievedByClient(SingleProcessDeploymentOperationStatus operation)
 {
     operation.IsFinalStatusRetrievedByClient = true;
     Logger.LogEvent(string.Format("Operation's final status has been retrieved by client '{0} ({1})'.", operation.ReadableOperationId, operation.OperationId), this, ImportanceLevels.dMedium);
 }