Ejemplo n.º 1
0
 protected virtual void OnChannelJoined(ChannelJoinedEventArgs e)
 {
     if (ChannelJoined != null)
     {
         ChannelJoined(this, e);
     }
 }
        private async Task ChannelsHubSignalRClient_ChannelJoined(object _, ChannelJoinedEventArgs e)
        {
            if (!Channels.Any(x => x.ChannelName == e.ChannelName))
            {
                await FetchChannels().ConfigureAwait(false);
            }
            else
            {
                UpdateConnectedStateForChannels(e.ChannelName, true);
            }

            NotifyStateChanged();
        }
        private async Task ChannelsHubSignalRClient_ChannelJoined(object _, ChannelJoinedEventArgs e)
        {
            if (string.Equals(e.ChannelName, CurrentlySelectedChannelName, StringComparison.OrdinalIgnoreCase))
            {
                if (Channel == null)
                {
                    await FetchChannel().ConfigureAwait(false);
                }

                Channel.ShouldListen = true;
                NotifyStateChanged();
            }
        }
Ejemplo n.º 4
0
 void _client_OnChannelJoined(object sender, ChannelJoinedEventArgs e)
 {
     tbxLog.AppendText(string.Format("Your client joined successfully in '{0}'\r\n", e.JoinedChannel.Name));
 }
Ejemplo n.º 5
0
 private static void Client_ChannelJoined(object sender, ChannelJoinedEventArgs e)
 {
     Console.WriteLine($"Joined {e.Channel}");
 }
Ejemplo n.º 6
0
 private static async Task TwitchBot_ChannelJoined(object sender, ChannelJoinedEventArgs e)
 {
     //await e.Channel.SendChatMessage("I'm alive, yippe!");
     SharedBotInfo.GetSharedInfo(e.Channel.Channel)?.LinkCustomCommands(e.Channel);
 }