javascript:void(prompt('',gApplication.getMap().getCenter()));
Wednesday, August 19, 2009
Google maps and GPS coordinates
To get gps coordinate from google maps type in address bar of your browser following command:
Saturday, August 15, 2009
Enterprise library - real time log viewer
I made application for looking logs from enterprise library - logging application block in real time.
Application is still in alpha phase but I believe that it can be useful to someone even unfinished as it is. So, expect upgrade of this application, soon.
Link is http://www.mijalko.com/realtimelogviewer
Application is still in alpha phase but I believe that it can be useful to someone even unfinished as it is. So, expect upgrade of this application, soon.
Link is http://www.mijalko.com/realtimelogviewer
Friday, August 14, 2009
Friday, August 07, 2009
Geneva framework and WCF service to WCF service identity delegation
In order to use credentials from WCF service to call method on other WCF service that also use authentication from Geneva Framework STS you can use code like following:
var principal = Thread.CurrentPrincipal as IClaimsPrincipal;
var callerTokens = principal.GetBootstrapTokens();
using (var serviceFactory = new ChannelFactory("WSFederationHttpBinding_IMyApi"))
{
serviceFactory.ConfigureChannelFactory();
if (callerTokens.Count > 0)
{
var service = serviceFactory.CreateChannelActingAs(callerTokens[0]);
service.SomeMethod();
}
}
Subscribe to:
Posts (Atom)