git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C280
This commit is contained in:
parent
96a6667347
commit
1e103ac89f
3 changed files with 61 additions and 0 deletions
|
|
@ -75,6 +75,7 @@
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Content Include="Global.asax" />
|
||||||
<Content Include="Properties\DataSources\System.Data.DataSet.datasource" />
|
<Content Include="Properties\DataSources\System.Data.DataSet.datasource" />
|
||||||
<None Include="Properties\PublishProfiles\AYA.SlnSinort.WCF.pubxml" />
|
<None Include="Properties\PublishProfiles\AYA.SlnSinort.WCF.pubxml" />
|
||||||
<None Include="Service References\ServiciosUsuariosWCF\ServicioUsuarios.disco" />
|
<None Include="Service References\ServiciosUsuariosWCF\ServicioUsuarios.disco" />
|
||||||
|
|
@ -89,6 +90,9 @@
|
||||||
<Content Include="Web.config" />
|
<Content Include="Web.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Global.asax.cs">
|
||||||
|
<DependentUpon>Global.asax</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="ISinortCatalogos.cs" />
|
<Compile Include="ISinortCatalogos.cs" />
|
||||||
<Compile Include="Service References\ServiciosUsuariosWCF\Reference.cs">
|
<Compile Include="Service References\ServiciosUsuariosWCF\Reference.cs">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
|
|
|
||||||
1
AYA.SlnSynor/AYA.SlnSynor.WCF/Global.asax
Normal file
1
AYA.SlnSynor/AYA.SlnSynor.WCF/Global.asax
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<%@ Application Codebehind="Global.asax.cs" Inherits="AYA.SlnSinort.WCF.Global" Language="C#" %>
|
||||||
56
AYA.SlnSynor/AYA.SlnSynor.WCF/Global.asax.cs
Normal file
56
AYA.SlnSynor/AYA.SlnSynor.WCF/Global.asax.cs
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.SessionState;
|
||||||
|
|
||||||
|
namespace AYA.SlnSinort.WCF
|
||||||
|
{
|
||||||
|
public class Global : System.Web.HttpApplication
|
||||||
|
{
|
||||||
|
|
||||||
|
protected void Application_Start(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Session_Start(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Application_BeginRequest(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (HttpContext.Current.Request.HttpMethod == "OPTIONS")
|
||||||
|
{
|
||||||
|
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Methods", "POST, PUT, DELETE");
|
||||||
|
|
||||||
|
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Headers", "Content-Type, Accept");
|
||||||
|
HttpContext.Current.Response.AddHeader("Access-Control-Max-Age", "1728000");
|
||||||
|
HttpContext.Current.Response.End();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Application_AuthenticateRequest(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Application_Error(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Session_End(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void Application_End(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue