Questions tagged as 'c#'

0
answers

Detect rows in a matrix

How do I ask if row 1 and row 2 are in a matrix? I have the following code made so far: public boolean intercambiar_Filas(int fila1, int fila2){ double auxiliar; if(fila1 == fila2) { for (int j = 0; j < 4; j++) { au...
asked by 10.06.2018 / 05:29
0
answers

because I can not add the visual reference compilerservices?

I need to use this library for my program but it does not appear anywhere. The library is visual compilerservices The errors I get are.    The name 'CallType' does not exist in the current context (CS0103) -   C: \ Users \ Silvul \ Docu...
asked by 10.06.2018 / 04:53
0
answers

bring a pdf c # from the back in ITextSharp Document to the front in angle 4 and show it?

I tell you that I have a routine in C # that forms a pdf that leaves it in a variable var pdfDoc = new iTextSharp.text.Document(PageSize.Letter); // lineas de código para formar el pdf res.Payload = pdfDoc; pdfDoc.Close();...
asked by 08.06.2018 / 15:44
1
answer

Problems with Enums

I have the following enum public enum Tipo { Tipo0 = 0, Tipo1 = 1, Tipo2 = 2, Tipo3 = 3 } Which I use in my model in the following way public class MiModeloViewModel { public Enums.Tipo Tipo { get; set; } } F...
asked by 08.06.2018 / 17:27
1
answer

How to handle the cookie of my jwt?

I have an api with jwt that gives me a token of authorization to be able to navigate in the application that consumes the api, this token has an expiration date and it is here my question. How can I handle this from my client appli...
asked by 11.06.2018 / 22:17
0
answers

SignalR use my IP

I am developing a console application that acts as a server using Signalr The idea is that users ask for information in real time to this server. At the time of working with localhost everything works perfectly now I am trying...
asked by 06.06.2018 / 12:48
0
answers

The number of properties in the Dependent and Principal Roles in a relationship constraint must be identical

I have 3 classes that I want to relate from many to many with EF and we have this: public class ClsPermisos: ComponenteBase { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public Byte Codigo...
asked by 17.06.2018 / 13:07
0
answers

Get the user who accesses the URL of the published site

Good day, I need to get the user who is opening the url of the published site, example: the published site is in the following route: 10.11.15.76:81, when the user from his team opens any browser and places the url indicated, the site should sta...
asked by 06.06.2018 / 15:25
2
answers

How can I make a constructor in my controller?

Can I make a constructor of my controller to instantiate the instances that I must consume from the models or methods of my application ?. How would it be? Example: My controller public class MiControlController : Controller {...
asked by 06.06.2018 / 14:16
0
answers

c # What is the best way to continuously send images through socket tcp?

I am using AForge more specifically in the video section of the ScreenCaptureStream class to get the bitmap of the computer screen and then send that image to a server which will show the images as if it were a video. Perp the problem is that...
asked by 05.06.2018 / 07:38