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
HSSFPatriarch _patriarch; |
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
<security> | |
<requestFiltering> | |
<requestLimits maxAllowedContentLength="1073741824" /> | |
</requestFiltering> | |
</security> |
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
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" /> |
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
public class ElmahHandledErrorLoggerFilter : IExceptionFilter | |
{ | |
public void OnException(ExceptionContext context) | |
{ | |
// Log only handled exceptions, because all other will be caught by ELMAH anyway. | |
if (context.ExceptionHandled) | |
ErrorSignal.FromCurrentContext().Raise(context.Exception); | |
} | |
} |
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
public static void RegisterGlobalFilters(GlobalFilterCollection filters) | |
{ | |
filters.Add(new ElmahHandledErrorLoggerFilter()); | |
filters.Add(new HandleErrorAttribute()); | |
} |
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
public static void RegisterGlobalFilters(GlobalFilterCollection filters) | |
{ | |
filters.Add(new HandleErrorAttribute()); | |
} |
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> | |
/// Gets the cell reference (A1, B2, etc) by object implementing ICell. | |
/// </summary> | |
/// <param name="cell">The cell.</param> | |
/// <returns>cell reference as string</returns> | |
private string GetCellReferenceByCell(ICell cell) | |
{ | |
CellReference cellRef = new CellReference(cell); | |
return cellRef.FormatAsString(); | |
} |
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
/// <reference path="jquery-1.7.2.js" /> | |
/// <reference path="jquery-ui-1.8.20.js" /> | |
/// <reference path="jquery.signalR-0.5.2.js" /> | |
$(function () { | |
// Establish a connection to the updateFeed hub | |
var hub = $.connection.updateFeed; | |
// Extend the object with our feedUpdated method held within the updateFeed hub | |
$.extend(hub, { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using SignalR.Hubs; | |
namespace LiveUpdate.Hubs | |
{ | |
/// <summary> | |
/// Skeleton hub class used to establish connections. |
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> | |
/// Broadcasts the update to all connected clients. I've done this directly in the controller to | |
/// demonstrate server -> client pushing, rather than client -> client pushing. | |
/// </summary> | |
/// <param name="updateItem">The update item.</param> | |
internal static void BroadcastUpdate(Update updateItem) | |
{ | |
// Fetch the hub's context to broadcast | |
IHubContext context = GlobalHost.ConnectionManager.GetHubContext<LiveUpdate.Hubs.LiveUpdateHub>(); |