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
| import { OnDestroy } from '@angular/core'; | |
| import { Subscription } from 'rxjs/Subscription'; |
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
| export class SeuComponente implements OnDestroy { | |
| private _simpleSubscription: Subscription = new Subscription(); | |
| } |
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; | |
| } | |
| ); |
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
| 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
| 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
| 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
| 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
| <?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
| [ | |
| { | |
| "data": "07/02/1995", | |
| "demanda": 22, | |
| "capacidade": 30, | |
| "atendimentop": 22, | |
| "atendimentor": 25, | |
| "desvio": 1 | |
| }, | |
| { |
OlderNewer