This file contains hidden or 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.Generic; | |
| using System.Linq; | |
| using System.Runtime.CompilerServices; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace AsyncAwaitDemo | |
| { | |
| class Program |
This file contains hidden or 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 KindergartenApp.Core.Extensions; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Linq.Dynamic; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| using KindergartenApp.Core.Filtering; | |
| namespace KindergartenApp.Core.Extensions |
This file contains hidden or 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.Generic; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using System.Web.Http.Filters; | |
This file contains hidden or 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.Generic; | |
| using System.Linq; | |
| using System.Net.Http.Headers; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using System.Web.Http.Filters; | |
| using System.Web.Http.Results; | |
| using System.Security.Principal; |
This file contains hidden or 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.Collections.Generic; | |
| using System.Net.Http; | |
| using System.Web.Http.Routing; | |
| namespace WebApiApp.Util | |
| { | |
| public class CustomConstraint: IHttpRouteConstraint | |
| { | |
| private string uri; | |
| public CustomConstraint(string uri) |
This file contains hidden or 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
| namespace GarantaParts.Engine.Import.TecDoc | |
| { | |
| public class SqlQueryTemplates | |
| { | |
| public static string ArticleSearchTemplate = @" | |
| SELECT DISTINCT | |
| TOF_ARTICLES.ART_ID, | |
| TOF_BRANDS.BRA_BRAND, | |
| TOF_SUPPLIERS.SUP_ID, |
This file contains hidden or 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 node.Id, node.Title, node.LeftIndex, node.RightIndex, node.MetaTitle, node.MetaKeywords, node.MetaDescription, node.Cover, (COUNT(parent.Title) - 1) AS depth | |
| FROM {0}.Categories AS node, {0}.Categories AS parent | |
| WHERE node.LeftIndex BETWEEN parent.LeftIndex AND parent.RightIndex | |
| GROUP BY node.Id, node.Title, node.LeftIndex, node.RightIndex, node.MetaTitle, node.MetaKeywords, node.MetaDescription, node.Cover | |
| ORDER BY node.LeftIndex |
This file contains hidden or 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 UnityApiControllerActivator : IHttpControllerActivator | |
| { | |
| private readonly IUnityContainer _container; | |
| public UnityApiControllerActivator(IUnityContainer container) | |
| { | |
| _container = container; | |
| } | |
| public IHttpController Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType) |
This file contains hidden or 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 storageAccount = CloudStorageAccount.Parse("AccountName=<accountName>;AccountKey=<accountKeyBase64>;DefaultEndpointsProtocol=http"); | |
| var blobClient = storageAccount.CreateCloudBlobClient(); | |
| // Get the current service properties | |
| var serviceProperties = blobClient.GetServiceProperties(); | |
| // Set the default service version to 2011-08-18 (or a higher version like 2012-03-01) | |
| serviceProperties.DefaultServiceVersion = "2011-08-18"; | |
| // Save the updated service properties |
NewerOlder