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 BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Running; | |
| namespace MyBenchmarks | |
| { | |
| public class MemoriaBenchmarkDemo | |
| { | |
| private readonly List<Boleto> Boletos; | |
| public MemoriaBenchmarkDemo() |
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 class ServiceBusMessageExtensions | |
| { | |
| public const string RetryCountIdentifier = "RetryAttempt"; | |
| public static bool ShouldRetry(this Message message, int maxRetryCount) | |
| { | |
| int resubmitCount = message.GetRetryAttempt(); | |
| return resubmitCount < maxRetryCount; | |
| } |
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
| [ | |
| { | |
| "data": "07/02/1995", | |
| "demanda": 22, | |
| "capacidade": 30, | |
| "atendimentop": 22, | |
| "atendimentor": 25, | |
| "desvio": 1 | |
| }, | |
| { |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration> | |
| <location path="." inheritInChildApplications="false"> | |
| <system.webServer> | |
| <handlers> | |
| <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /> | |
| </handlers> | |
| <aspNetCore processPath="dotnet" arguments=".\seuapp.dll" stdoutLogEnabled="false" stdoutLogFile=".\LogFiles\stdout" requestTimeout="00:20:00" /> | |
| </system.webServer> | |
| </location> |
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.IO.Stream st = ReportDocumentComponent.ExportToStream(ExportFormatType.PortableDocFormat)) | |
| { | |
| // criar um Leitor de Binários para receber o stream | |
| using(System.IO.BinaryReader br = new System.IO.BinaryReader(st)) | |
| { | |
| // cria um vetor de bytes do tamanho do stream | |
| byte[] vet = new byte[st.Length]; | |
| // Carrega o vetor de bytes | |
| for (int x = 0; x < (st.Length); ++x) |
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.IO.Stream st = ReportDocumentComponent.ExportToStream(ExportFormatType.PortableDocFormat); | |
| // criar um Leitor de Binários para receber o stream | |
| System.IO.BinaryReader br = new System.IO.BinaryReader(st); | |
| // cria um vetor de bytes do tamanho do stream | |
| byte[] vet = new byte[st.Length]; | |
| // Carrega o vetor de bytes | |
| for (int x = 0; x < (st.Length); ++x) |
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
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var a = new InstanceResponse(""); | |
| } | |
| public class Response<T> where T : class | |
| { | |
| public bool Result; |
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
| this._listSubscriptions.add(this.subscribeService.getComments().subscribe( | |
| result => { | |
| this.comentarios = result; | |
| this.isLoading = false; | |
| } | |
| )); |
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
| if(this._simpleSubscription != undefined) this._simpleSubscription.unsubscribe(); |
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
| //Nossa subscription | |
| this._simpleSubscription = this.subscribeService.getComments().subscribe( | |
| result => { | |
| this.comentarios = result; | |
| this.isLoading = false; | |
| } | |
| ); |
NewerOlder