Showing 5 of 5 total issues
File AppController.cs
has 281 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Microsoft.Lync.Model;
using Microsoft.Lync.Model.Conversation;
using Microsoft.Lync.Model.Conversation.AudioVideo;
using Microsoft.Lync.Model.Extensibility;
using System;
Function attachClientEvents
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private attachClientEvents() {
// Event subscriptions that are passed to CLR components provide
// a single object payload when they are activated. The below creates
// a bit of middleware that ingests this, optionally applying a
// transform so we can emit a Node event with a common signature.
Method OnConnect
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void OnConnect(Proxy callback)
{
ExecuteAction.InState<AVModality>(client, ModalityTypes.AudioVideo, ModalityState.Connected, (conversation, modality) =>
{
var participants = conversation.Participants.Where(p => !p.IsSelf).Select(p => new UserDetails(p.Contact));
Method SubscribeToEvents
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static void SubscribeToEvents()
{
try
{
var client = LyncClient.GetClient();
Method SetWindowPos
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags);