This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace NotificationApp.Hubs | |
{ | |
using Microsoft.AspNet.SignalR; | |
/// <summary> | |
/// Hub de notificaciones de la aplicación. | |
/// </summary> | |
public class NotificationHub : Hub | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace NotificationApp.Hubs | |
{ | |
using Microsoft.AspNet.SignalR; | |
/// <summary> | |
/// Hub de notificaciones de la aplicación. | |
/// </summary> | |
public class NotificationHub : Hub | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace NotificationApp.Hubs | |
{ | |
using Microsoft.AspNet.SignalR; | |
/// <summary> | |
/// Hub de notificaciones de la aplicación. | |
/// </summary> | |
public class NotificationHub : Hub | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace NotificationApp.Hubs | |
{ | |
using Microsoft.AspNet.SignalR; | |
/// <summary> | |
/// Hub de notificaciones de la aplicación. | |
/// </summary> | |
public class NotificationHub : Hub | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace NotificationApp.Hubs | |
{ | |
using Microsoft.AspNet.SignalR; | |
/// <summary> | |
/// Hub de notificaciones de la aplicación. | |
/// </summary> | |
public class NotificationHub : Hub | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Quita al cliente del grupo especificado. | |
/// </summary> | |
/// <param name="groupName">Nombre del grupo.</param> | |
public void LeaveGroup(string groupName) | |
{ | |
Groups.Remove(Context.ConnectionId, groupName); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Une al cliente al grupo especificado. | |
/// </summary> | |
/// <param name="groupName">Nombre del grupo.</param> | |
public void JoinToGroup(string groupName) | |
{ | |
Groups.Add(Context.ConnectionId, groupName); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Console.WriteLine(SumarCuadrados(new int[] { })); | |
Console.WriteLine(SumarCuadrados(new int[] { 1, 2, 3, 4, 5 })); | |
Console.ReadLine(); | |
} | |
static int SumarCuadrados(int[] valores) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Console.WriteLine(SumarCuadrados()); | |
Console.WriteLine(SumarCuadrados(1, 2, 3, 4, 5)); | |
Console.WriteLine(SumarCuadrados(new int[] { 1, 2, 3, 4, 5 })); | |
Console.ReadLine(); | |
} | |
static int SumarCuadrados(params int[] valores) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Launch ConsoleApplication", | |
"type": "mono", | |
"program": "${workspaceRoot}/Program.exe", | |
"stopOnEntry": true, | |
"externalConsole": true, | |
"preLaunchTask": "exe" |
OlderNewer