예제 #1
0
        private void ExecuteOperation(OperationItem operation, WebSocketConnection connection)
        {
            operation.ConnectionId = connection.ConnectionId;
            operation.LastUpdated  = DateTime.UtcNow;
            _activeOperations.Add(operation.Ref, operation);

            var package = operation.Operation.CreateNetworkPackage(operation.Ref);

            LogDebug("ExecuteOperation push {0}, {1}, {2}.", package.ChannelEvent, package.PushRef, operation);
            connection.EnqueueSend(package.ToMessage());
        }