Can be used to move a folder from one repository into its own repository. E.g.:
hg convert --filemap migrationMap "C:\Dev" "c:\src\MyProject"
migrationMap is a file with:
include MyProject rename MyProject .
Can be used to move a folder from one repository into its own repository. E.g.:
hg convert --filemap migrationMap "C:\Dev" "c:\src\MyProject"
migrationMap is a file with:
include MyProject rename MyProject .
In Windows Resource Kit there is a utility winhttpcertcfg.exe.
List certificate key permissions:
winhttpcertcfg.exe -l -c LOCAL_MACHINE\My -s "certificate.name"
Grant permissions to a certificate key:
winhttpcertcfg.exe -g -c LOCAL_MACHINE\My -s "certificate.name" -a WindowsAccount
Grant account permissions to run as a Windows service:
Logon as service policy
Grant account permissions to run as an ASP.NET application service:
aspnet_regiis -ga WindowsAccount
Give WindowsAccount write permissions to C:\Windows\Temp
If the certificate is not in this store and you want to move it there from another location, you must export the certificate and then import it. Do not drag and drop it in the Certificates MMC UI or it won’t work.
Aspect-oriented framework for .NET.
Name: OnExceptionAspect
Level: method
Note: exception handling in a marked method
Name: OnMethodBoundaryAspect
Level: method, class, assembly
Notes: intercepts certain points in a method’s execution: OnEntry, OnExit, OnSuccess, OnException
Name: MethodInterceptionAspect
Level: method
Notes: replaces method’s contents that can be invoked
Example use: wait/retry, automatic thread delegation, lazy loading and validation
Name: LocationInterceptionAspect
Level: field, property
Notes: OnGetValue and OnSetValue
Example use: lazy loading, IoC Resolution
Bundle and minify scripts and stylesheets.
Reference files in javascript files to be automatically included (with intellisense in VS):
/// <reference path="jquery.js"/>
//To serialize into XElement:
XmlSerializer x = new XmlSerializer(typeof(ComplexType));
XDocument doc = new XDocument();
ComplexType ct = _getComplexType();
using (XmlWriter xw = doc.CreateWriter())
{
ComplexType ct = _getComplexType();
x.Serialize(xw, complexType);
xw.Close();
}
XElement el = doc.Root;
//To deserialize into ComplexType:
using (XmlReader xr = el.CreateReader())
{
ComplexType deserializedComplexType =
x.Deserialize(xr) as ComplexType;
xr.Close();
}
For example, need to expose an enumeration that is not used by any of the WCF service operations to the client (via WSDL).
While ServiceKnownType attribute on the service class/interface/method exposed the type in the XSD schema of the WSDL, the default client proxy generation does not generate code for it.
Eventually ended up with a dummy solution of having a dummy method:
public class ExposedDataTypes
{
public CustomType1 type1 { get; set; }
public CustomType2 type2 { get; set; }
}
ExposedDataTypes IService.Ignore()
{
return null;
}
Not the best solution, but couldn’t gracefully work around it. Easy and works nicely though.
<bindings><basicHttpBinding><binding...><security mode="Transport">.<system.serviceModel><behaviors><serviceBehaviors><behavior...><serviceMetadata httpsGetEnabled="true"/>