This file contains hidden or 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
| <script src="http://code.jquery.com/jquery-1.4.2.min.js" type="text/javascript"></script> | |
| <script src="../jquery.tablednd_0_5.js" type="text/javascript"></script> | |
| <a id="StartOfPageContent"></a> |
This file contains hidden or 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
| <add key="ElmahRole" value="IT Developers"/> | |
| <add key="ElmahAuthServer" value="ldap.mycompany.com"/> |
This file contains hidden or 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
| <add name="ErrorAuth" type="SecurElmah.AuthModule, SecurElmah"/> |
This file contains hidden or 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.Configuration; | |
| using System.DirectoryServices.AccountManagement; | |
| using System.Net; | |
| using System.Text; | |
| using System.Web; | |
| namespace SecurElmah | |
| { | |
| public class AuthModule : IHttpModule |
This file contains hidden or 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
| <httpHandlers> | |
| <add verb="POST,GET,HEAD" path="/admin/elmah.axd" | |
| type="Elmah.ErrorLogPageFactory, Elmah" /> | |
| </httpHandlers> | |
| ... | |
| <!-- Deny unauthenticated users to see the elmah.axd --> | |
| <location path="admin"> | |
| <system.web> | |
| <authorization> | |
| <deny users="?"/> |
This file contains hidden or 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
| select 1 from dual connect by level <= 50; |
This file contains hidden or 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 Microsoft.AspNet.SignalR; | |
| public override void CommitTransaction(object sender) { | |
| base.CommitTransaction(sender); | |
| var hub = GlobalHost.ConnectionManager.GetHubContext<MyHub1>(); | |
| hub.Clients.All.refreshAlert(); | |
| } |
This file contains hidden or 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
| <script src="../Scripts/jquery-1.6.4.min.js" ></script> | |
| <script src="../Scripts/jquery.signalR-2.0.1.min.js"></script> | |
| <script src="/signalr/hubs"></script> | |
| <script type="text/javascript"> | |
| $(function () { | |
| var hub = $.connection.myHub1; | |
| hub.client.refreshAlert = function () { | |
| alert("Data has been updated. Please refresh."); | |
| }; | |
| $.connection.hub.start(); |
This file contains hidden or 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 Microsoft.Owin; | |
| using Owin; | |
| [assembly: OwinStartup(typeof(SignalRDemo.UI.Startup))] | |
| namespace SignalRDemo.UI { | |
| public class Startup { | |
| public void Configuration(IAppBuilder app) { | |
| // Any connection or hub wire up and configuration should go here |