Пример #1
0
        public async Task WebDeleteUserMarker(IdMessage message)
        {
            var state = GetState(ConnectionKind.Web);

            if (state == null)
            {
                _logger.LogWarning($"No state for DeleteUserMarker");
                return;
            }
            await Clients.Group(state.ArmaChannelName).SendAsync("Callback", "DeleteUserMarker", ToData(message));
        }
Пример #2
0
 private static string ToData(IdMessage message)
 {
     return(FormattableString.Invariant($"[\"{ArmaSerializer.Escape(message.Id)}\"]"));
 }