public static X509Certificate2 GetCertFromCont(string pin, string CertCont) { CspParameters cspParameters = new CspParameters(75); cspParameters.KeyContainerName = CertCont; cspParameters.Flags = CspProviderFlags.NoPrompt; if (pin != "") { System.Security.SecureString s = new System.Security.SecureString(); foreach (char z in pin) s.AppendChar(z); cspParameters.KeyPassword = s; } try { Gost3410CryptoServiceProvider prov = new Gost3410CryptoServiceProvider( cspParameters); return prov.ContainerCertificate; } catch (Exception e) { //System.Windows.MessageBox.Show(e.Message); return null; } }
с# get GOST 3410 certificate from container
VS2010 tfs http code 203 non-authoritative information
1 Service Pack 1 for Visual Studio 2010
2 Visual Studio 2010 SP1 Team Foundation Server 2012 Compatibility GDR - This patch found here
2 Visual Studio 2010 SP1 Team Foundation Server 2012 Compatibility GDR - This patch found here
Introdution example from KnockoutJs
//HTML
<p>First name: <strong data-bind="text: firstName"></strong></p>
<p>Last name: <strong data-bind="text: lastName"></strong></p>
<p>First name: <input data-bind="value: firstName" /></p>
<p>Last name: <input data-bind="value: lastName" /></p>
<p>Full name: <strong data-bind="text: fullName"></strong></p>
<button data-bind="click: capitalizeLastName">Go caps</button>
----------------------------------------------------------------------
//JS
function AppViewModel() {
this.firstName = ko.observable("Bert");
this.lastName = ko.observable("Bertington");
this.fullName = ko.computed(function() {
return this.firstName() + " " + this.lastName();
}, this);
this.capitalizeLastName = function() {
var currentVal = this.lastName(); // Read the current value
this.lastName(currentVal.toUpperCase()); // Write back a modified value
};
}
ko.applyBindings(new AppViewModel());
Download KnockOutJS
<p>First name: <strong data-bind="text: firstName"></strong></p>
<p>Last name: <strong data-bind="text: lastName"></strong></p>
<p>First name: <input data-bind="value: firstName" /></p>
<p>Last name: <input data-bind="value: lastName" /></p>
<p>Full name: <strong data-bind="text: fullName"></strong></p>
<button data-bind="click: capitalizeLastName">Go caps</button>
----------------------------------------------------------------------
//JS
function AppViewModel() {
this.firstName = ko.observable("Bert");
this.lastName = ko.observable("Bertington");
this.fullName = ko.computed(function() {
return this.firstName() + " " + this.lastName();
}, this);
this.capitalizeLastName = function() {
var currentVal = this.lastName(); // Read the current value
this.lastName(currentVal.toUpperCase()); // Write back a modified value
};
}
ko.applyBindings(new AppViewModel());
Download KnockOutJS
Subscribe to:
Posts (Atom)