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
// credit RAM && BrianRogers -- https://stackoverflow.com/questions/26162902/how-can-i-do-json-serializer-ignore-navigation-properties/#32797274 | |
namespace DataModel | |
{ | |
class CustomResolver : DefaultContractResolver | |
{ | |
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization) | |
{ | |
JsonProperty prop = base.CreateProperty(member, memberSerialization); | |
var propInfo = member as PropertyInfo; | |
if (propInfo != null) |
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.Text; | |
using System.Threading.Tasks; | |
namespace Domain.Logic | |
{ | |
public class FeatureToggleHelper | |
{ |
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 static async Task<IHttpActionResult> CriarPedidoAsyncTransparente<X, Y>(X pedido, string path) | |
{ | |
HttpResponseMessage resp2 = await client.PostAsJsonAsync("/api/" + path, pedido); | |
ResponseMessageResult msg2 = new ResponseMessageResult(resp2); | |
return msg2; | |
} |
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
@echo off | |
:lib | |
mkdir BUILD | |
cd BUILD | |
mkdir lib | |
cd .. | |
cd INCOMING_DLL |
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.Diagnostics; | |
using System.IO; | |
using System.Runtime.CompilerServices; | |
using System.Text; | |
using System.Threading; | |
using log4net; | |
namespace DesignByContractProgramming | |
{ |