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
<bindings> | |
<netTcpRelayBinding> | |
<binding name="hybridBinding" connectionMode="Hybrid"> | |
</binding> | |
</netTcpRelayBinding> | |
</bindings> | |
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
<bindings> | |
<netTcpRelayBinding> | |
<binding name="hybridBinding" connectionMode="Hybrid"> | |
<security mode="None"/> | |
</binding> | |
</netTcpRelayBinding> | |
</bindings> |
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
/// <reference path="bootstrap.js" /> | |
/// <reference path="breeze.debug.js" /> | |
/// <reference path="jquery-1.9.1.js" /> | |
/// <reference path="knockout-2.2.1.debug.js" /> | |
/// <reference path="moment.js" /> | |
/// <reference path="q.js" /> | |
/// <reference path="sammy-0.7.4.js" /> | |
/// <reference path="toastr-1.1.5.js" /> |
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 OrderService | |
{ | |
public OrderResponse GetOrder(Guid orderId) | |
{ | |
return new OrderResponse(); | |
} | |
} |
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 OrderService | |
{ | |
public OrderResponse GetOrder(OrderRequest request) | |
{ | |
return new OrderResponse(); | |
} | |
} |
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 FilenameMultipartFormDataStreamProvider : MultipartFormDataStreamProvider | |
{ | |
public FilenameMultipartFormDataStreamProvider(string path) : base(path) | |
{ | |
} | |
public override string GetLocalFileName(System.Net.Http.Headers.HttpContentHeaders headers) | |
{ | |
var name = !string.IsNullOrWhiteSpace(headers.ContentDisposition.FileName) ? headers.ContentDisposition.FileName : Guid.NewGuid().ToString(); | |
return name.Replace("\"",string.Empty); |
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
namespace ODataSample | |
{ | |
/// <summary> | |
/// There are no comments for Entities in the schema. | |
/// </summary> | |
public partial class Entities : global::System.Data.Services.Client.DataServiceContext | |
{ | |
/// <summary> | |
/// Initialize a new Entities object. | |
/// </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
namespace ODataSample | |
{ | |
public partial class Entities | |
{ | |
private X509Certificate _clientCertificate = null; | |
public X509Certificate ClientCertificate | |
{ | |
get | |
{ | |
return _clientCertificate; |
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
Entities ctx = new Entities(new Uri(settings.Url)); | |
ctx.ClientCertificate = new X509Certificate(settings.CertificatePath); |
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 edge = require('edge'); | |
var helloWorld = edge.func('async (input) => { return ".NET Welcomes " + input.ToString(); }'); | |
helloWorld('JavaScript', function (error, result) { | |
if (error) throw error; | |
console.log(result); | |
}); | |