Showing 8 of 8 total issues
Method MultipleUser
has 118 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Fact]
public void MultipleUser()
{
var list = new ChannelUserList();
var userAdd = false;
Method SingleUser
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[Fact]
public void SingleUser()
{
var list = new ChannelUserList();
var userAdd = false;
Method ConfigureServices
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void ConfigureServices(IServiceCollection services)
{
services.Configure<SettingOptions>(Configuration);
Configuration.Bind(settings);
Method BroadcastPlayCurrentSong
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async void BroadcastPlayCurrentSong(UserSong current, string userId = null)
{
if (current?.Song != null)
{
Song song;
Method GetSong
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<Song> GetSong(ClientSong clientSong, bool requestUrl = false)
{
if (clientSong == null)
{
return null;
Method StartMonitorSocket
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async Task StartMonitorSocket(string userId, WebSocket socket)
{
try
{
while (socket != null && socket.State == WebSocketState.Open)
Method GetOrCreateChannel
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Channel GetOrCreateChannel(string channelId, ISocketManager socketManager, IProvider provider, IUserManager userManager, IMemoryCache cache);
Method GetOrCreateChannel
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Channel GetOrCreateChannel(string channelId, ISocketManager socketManager, IProvider provider, IUserManager userManager, IMemoryCache cache)