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
System.Reflection.TargetInvocationException: Uma exceção foi acionada pelo destino de uma chamada. ---> System.Net.WebException: A conexão subjacente estava fechada: Erro inesperado em um recebimento. ---> System.IO.IOException: Não é possível ler os dados da conexão de transporte: Foi forçado o cancelamento de uma conexão existente pelo host remoto. ---> System.Net.Sockets.SocketException: Foi forçado o cancelamento de uma conexão existente pelo host remoto | |
em System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) | |
--- Fim do rastreamento de pilha de exceções internas --- | |
em System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) | |
em System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) | |
em System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) | |
--- Fim do rastreamento de pilha de exceções internas --- | |
em System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest requ |
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 void Configuration(IAppBuilder app) | |
{ | |
var config = new HttpConfiguration(); | |
app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions()); | |
WebApiConfig.ConfigureWebApi(config); | |
app.UseCors(CorsOptions.AllowAll); | |
var kernel = new Func<StandardKernel>(new Container().CreateKernel); |
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
{ | |
"dependencies": { | |
"Microsoft.AspNetCore.Mvc": "1.0.0", | |
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", | |
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0", | |
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", | |
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0", | |
"Microsoft.Extensions.Configuration.Json": "1.0.0", | |
"Microsoft.Extensions.Logging": "1.0.0", | |
"Microsoft.Extensions.Logging.Console": "1.0.0", |
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 list = new List<Example>{ | |
new Example{ | |
Id = 1, | |
Description = "First Level", | |
Type = 4, | |
ParentId = 0 | |
}, | |
new Example{ | |
Id = 2, |
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 IHttpActionResult GetWithControllerRedirect(string system, string rcontroller) | |
{ | |
try | |
{ | |
string url = $"http://localhost:55164/api/{rcontroller}"; | |
var request = (HttpWebRequest)WebRequest.Create(string.Format(url)); | |
request.Method = "GET"; | |
request.ContentType = "application/json; charset=utf-8"; | |
request.Accept = "application/json; charset=utf-8"; | |
var response = (HttpWebResponse)request.GetResponse(); |
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
<table> | |
<tbody> | |
<tr> | |
<td colspan="3"></td> | |
<td></td> | |
<td></td> | |
</tr> | |
<tr> | |
<td></td> | |
<td></td> |
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
@Html.DropDownListFor(model => model.ParentId, (IEnumerable<SelectListItem>)ViewBag.ParentId, new { @class = "form-control" }) |
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
prog aula | |
real peso; | |
real altura; | |
real imc; | |
logico deveentrar; | |
deveentrar <- verdadeiro; | |
imprima "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"; |
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
<?php | |
namespace Core\Entity; | |
class AbstractEntity | |
{ | |
protected $atribute; | |
} |
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
<?php | |
/** | |
* Application level Controller | |
* | |
* This file is application-wide controller file. You can put all | |
* application-wide controller-related methods here. | |
* | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | |
* |