This file contains 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
public class EWayOffsitePaymentSettings : IPaymentSettings | |
{ | |
public string PaymentType | |
{ | |
get { return "Sale"; } | |
set { } | |
} | |
public string[] ProcessorCreditCards | |
{ |
This file contains 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.TeamFoundation.Build.Client; | |
using Microsoft.TeamFoundation.Client; | |
using Microsoft.Win32; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Drawing; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; |
This file contains 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
TFS.module("Clickable",[],function(){ }); | |
$(function() { $(".logo").replaceWith("<a class='header-item logo header-logo-onpremise' href='/tfs/'>"); }); |
This file contains 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
<WebAccess version="11.0"> | |
<plugin moreinfo="http://bzbetty.blogspot.co.nz/2012/11/very-simple-tfs-2012-web-access-plugin.html" name="Make Logo Clickable" vendor="Betty" version="0.0.0.3"> | |
<modules> | |
<module loadAfter="TFS.Core" namespace="Clickable"></module> | |
</modules> | |
</plugin> | |
</WebAccess> |
This file contains 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-Type -AssemblyName 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' | |
Add-Type -AssemblyName 'Microsoft.TeamFoundation.Build.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' | |
$tfs = New-Object -TypeName Microsoft.TeamFoundation.Client.TfsTeamProjectCollection -ArgumentList $TfsServer | |
try { | |
$deployServiceType = [Microsoft.TeamFoundation.Build.Client.DeploymentService] | |
$deployService = $tfs.GetService($deployServiceType) | |
$deployService.CreateBuildDeployment($Uri, $Uri, $Quality) | |
} |
This file contains 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
Exception calling "CreateBuildDeployment" with "3" argument(s): "TF246021: An | |
error occurred while processing your request. | |
Technical information (for administrator): | |
SQL Server Error: 2601" | |
At E:\projects\BuildProcessTemplates\Deployment\Update-TfsBuildDetails.ps1:24 | |
char:1 | |
+ $deployService.CreateBuildDeployment($Uri, $Uri, $Quality) | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException | |
+ FullyQualifiedErrorId : BuildServerException |
This file contains 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
Microsoft.TeamFoundation.Client.TeamFoundationServer teamFoundationServer = new Microsoft.TeamFoundation.Client.TeamFoundationServer("http://UrlToTFS"); | |
FilteredIdentityService service = teamFoundationServer.GetService<FilteredIdentityService>(); ; | |
IIdentityManagementService2 service2 = teamFoundationServer.GetService<IIdentityManagementService2>(); | |
foreach (var identity in service.SearchForUsers("")) | |
{ | |
var user = UserPrincipal.FindByIdentity(new PrincipalContext(ContextType.Domain), identity.UniqueName); | |
if (user == null) continue; | |
var de = new System.DirectoryServices.DirectoryEntry("LDAP://" + user.DistinguishedName); |
This file contains 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
<WebAccess> | |
<plugin name="helloworld" vendor="betty" version="0.1" moreinfo="http://bzbetty.blogspot.com"> | |
</WebAccess> |
This file contains 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
var _builtinPlugins = [{"namespace":"TFS.Diag.TracePoints","loadAfter":"TFS.Diag"},{"namespace":"TFS.TestManagement.Controls","loadAfter":"TFS.WorkItemTracking.Controls"},{"namespace":"TFS.TestManagement.Setup","loadAfter":"TFS.OM"},{"namespace":"TFS.VersionControl.Setup","loadAfter":"TFS.OM"},{"namespace":"TFS.Requirements.Setup","loadAfter":"TFS.OM"}]; |
This file contains 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
public class MetadataProvider : DataAnnotationsModelMetadataProvider | |
{ | |
private IConfigurationProvider _mapper; | |
public MetadataProvider(IConfigurationProvider mapper) | |
{ | |
_mapper = mapper; | |
} | |
protected override System.Web.Mvc.ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName) | |
{ | |
//Grab attributes from the entity columns and copy them to the view model |
OlderNewer