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
[TestClass] | |
public class SampleTest | |
{ | |
[TestMethod] | |
public void ShouldListChangesetsByProject() | |
{ | |
using (var server = new TfsTeamProjectCollection(new Uri("http://mytfs:8080/tfs/", UriKind.Absolute))) | |
{ | |
var versionControl = server.GetService(typeof(VersionControlServer)) as VersionControlServer; | |
var set = versionControl.GetItems(@"$/MyTfsProject/MyPath", RecursionType.Full); |
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 System; | |
using System.ComponentModel.Composition; | |
namespace Songhay.DataAccess.Activities.AzureBlobStorage | |
{ | |
using Songhay.DataAccess.Runner; | |
[Export(typeof(IDarAssembly))] | |
public class Activity : DarAssembly | |
{ |
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
class Sample : IJob | |
{ | |
/// <summary> | |
/// Called by the <see cref="T:Quartz.IScheduler"/> when a <see cref="T:Quartz.ITrigger"/> | |
/// fires that is associated with the <see cref="T:Quartz.IJob"/>. | |
/// </summary> | |
/// <param name="context">The execution context.</param> | |
public void Execute(IJobExecutionContext context) | |
{ | |
this._settings = new ApplicationSettings(); |
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
static class Sample | |
{ | |
/// <summary> | |
/// Sets the collection with digits. | |
/// </summary> | |
/// <param name="number">The number.</param> | |
/// <param name="collection">The collection.</param> | |
public static void SetCollectionWithDigits(double number, ObservableCollection<byte?> collection) | |
{ | |
if (collection == null) return; |
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 System; | |
using System.Collections.ObjectModel; | |
namespace Songhay.Extensions | |
{ | |
/// <summary> | |
/// Extensions of <see cref="ObservableCollection<T>" />. | |
/// </summary> | |
public static class ObservableCollectionExtensions | |
{ |
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 System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
namespace Fox.Xavier.Models.Extensions | |
{ | |
using Fox.Entities; | |
using Fox.Xavier.Models; | |
/// <summary> |
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 Sample : Controller | |
{ | |
protected override void OnException(ExceptionContext filterContext) | |
{ | |
base.OnException(filterContext); | |
if (!filterContext.ExceptionHandled) return; | |
var httpContext = filterContext.HttpContext.ApplicationInstance.Context; | |
var signal = ErrorSignal.FromContext(httpContext); | |
signal.Raise(filterContext.Exception, httpContext); |
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
/// <summary> | |
/// Queries the requisitions. | |
/// </summary> | |
public static IQueryable<Requisition> QueryRequisitions() | |
{ | |
var ctx = GetContext(); | |
var statusIdsQuery = ctx.OrderStatuses | |
.Select(i => i.OrderStatusId); |
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
static class Sample | |
{ | |
/// <summary> | |
/// Queries the requisitions. | |
/// </summary> | |
public static IQueryable<Requisition> QueryRequisitions() | |
{ | |
var ctx = GetContext(); | |
var statusIdsQuery = ctx.OrderStatuses |
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
SELECT | |
[Project5].[OrderStatusID] AS [OrderStatusID], | |
[Project5].[OrderId] AS [OrderId], | |
[Project5].[OrderNumber] AS [OrderNumber], | |
[Project5].[PONumber] AS [PONumber], | |
[Project5].[DepartmentName] AS [DepartmentName], | |
[Project5].[CustomerName] AS [CustomerName], | |
[Project5].[CreatedDt] AS [CreatedDt], | |
[Project5].[PriorityFl] AS [PriorityFl], | |
[Project5].[StatusDescription] AS [StatusDescription], |