-
System.Globalization.DateTimeStyles.AssumeUniversal = Si la zona horaria no se especifica, se asume que es UTC
-
System.Globalization.DateTimeStyles.AdjustToUniversal = Si es una hora local, se convierte a UTC, de lo contrario no se realiza conversión alguna.
-
Assemblies signed with a key pair contained in a file .snk?
-
Azure
- A service to upload files using port 22
<Endpoints> <InputEndpoint name="Website" protocol="http" port="80" /> <InputEndpoint name="Transfer" protocol="tcp" port="22" /> </Endpoints>
- Update a service to use a new assembly version (The service must remain available during the transition)
<runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="MyAssembly.NameSpace"> <bindingRedirect oldVersion="1.1.0.0" newVersion="1.2.0.0"/> </assemblyIdentity> </dependentAssembly> </assemblyBinding> </runtime>
- Table storage
PartitionKey => Categoria
Rowkey => Id del registro
-
Entity Framework
- Retrying operations when an error occurs
for(var i = 0; i < 5; i++){ try{ return base.SaveChanges(); } catch(SqlException ex){ if(IsTransient(ex.Number)){ //IsTransient sería un método privado en el DataContext con el erreglo de los errores que dejarían continuar la operación continue; } } }
-
Microsoft Access OleDbConnection y OleDbDataReader
-
Caché => HttpContext.Cache la caché se debe de actualizar correctamente, para eso se utiliza:
- CacheDependency configurado para monitorear la carpeta del SFTP
-
StreamReader y StreamWriter
-
System.Xml.Linq.XStreamingElement Para crear un elemento XML con su contenido y guardarlo en un stream
var flights = new XStreamingElement("Flights", from flight in RemoteDataStream() where GetAirline(flight.Element("FlightName")) == airline select ConvertToHistoricalFlight(flight)); flight.WriteTo(responseWriter);
-
XmlWriteMode.DiffGram Is an XML format that identifies current and original versions of data elements. (It's useful when sending and retrieving a DataSet from an XML Web service).
-
-
Save jdnichollsc/2a0d8d3658e88702f83a2022c1ee6559 to your computer and use it in GitHub Desktop.
-
ADO.NET Entity Data Model Designer/Entity Data Model Wizard: Tools to validate:
- The conceptual schema definition language (CSDL)
- Store schema definition language (SSDL)
- Mapping specification language (MSL) files.
-
Web Deploy: A deployment tool to securely migrate websites.
-
Web Deployment Package: A deployment tool to deploy the application to remote servers for testing.
-
NuGet.Server Package: Develop a set of libraries. Create a remote Nuget feed that exposes the libraries. We need to create a new Empty Web App in Visual Studio, add packages to the Packages folder and configure the Packages folder located in the appSettings section of the web application's Web.config.
-
WCF Data Services (ADO.NET Data Services): A component of the .NET Framework that enables you to create services that use the Open Data Protocol (OData) to expose and consume data over the Web or intranet by using the semantics of REST. OData exposes data as resources that are addressable by URIs.
-
Windows Communication Foundation a runtime and a set of APIs to build connected, service-oriented apps.
- Discoverable:
<behaviors> <serviceBehaviors> <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/> </serviceBehaviors> </behaviors>
- Configuring
- Data contracts (Agreement between a service and a client)
[DataContract] public class StringData { [DataMember] //Serializable using decorators public string OriginalString; public string PrivateString; }
- Interfaces (Reusability, maintainability, extensibility, you can share it using a separate assembly and implement many interfaces depending of the client)
[ServiceContract] public interface IMyService { [OperationContract] StringData MyMethod(); }
-
Web Service: acts kind of like a broker or a proxy. messages are sent in text encoded SOAP messages using HTTP
-
SOAP (Simple Object Access Protocol) exchanging structured information via Web services in computer networks (XML format)
-
REST (Representational State Transfer) Native http, lightweight, efficient, support https (JSON format)
-
WCF + SOAP Bindings
- BasicHttpBinding: Web services and clients supporting the WS-BasicProfile 1.1 and Basic Security Profile 1.0 (Interoperability)
- WSHttpBinding: WS-* protocols over HTTP
- WSDualHttpBinding: Duplex HTTP communication. Receiver transmit any number of responses over a period of time via HTTP.
- WSFederationBinding: Access to the resources of a service can be controlled based on credentials issued by an explicitly-identified credential provider. (HTTP communication)
- NetTcpBinding: communication between WCF software entities across a network.
- NetNamedPipeBinding: communication between WCF software entities on the same.