Skip to content

Instantly share code, notes, and snippets.

@pisceanfoot
pisceanfoot / CustomCredentials.cs
Last active November 25, 2015 12:49
a custom wsse header (UserNameToken,Nonce) for webservice using WCF
// http://weblog.west-wind.com/posts/2012/Nov/24/WCF-WSSecurity-and-WSE-Nonce-Authentication
public class CustomCredentials : ClientCredentials
{
public CustomCredentials()
{ }
protected CustomCredentials(CustomCredentials cc)
: base(cc)
{ }
@artem-zinnatullin
artem-zinnatullin / App.cs
Created December 20, 2013 22:28
Changing windows phone app localization at runtime via bindings!
public class App : Application
{
// ... bla bla
// when app is launching, we should set its language to previous saved or best for user's system language or default for application
private void Application_Launching(object sender, LaunchingEventArgs e)
{
LocalizationManager.ChangeAppLanguage(LocalizationManager.GetCurrentAppLang());
}
}