public WebApiCtx() //: this(new Uri("http://ipv4.fiddler:555/")) : this(OAuthConfiguration.Configuration.ServiceSettings.Realm) //: this(new Uri("http://localhost:555/svc/")) { OAuthProvider.RegisterDataService(this); this.SendingRequest += Container_SendingRequest; this.ReceivingResponse += Container_ReceivingResponse; this.IgnoreResourceNotFoundException = true; this.ResolveName = new global::System.Func <global::System.Type, string>(this.ResolveNameFromType); this.ResolveType = new global::System.Func <string, global::System.Type>(this.ResolveTypeFromName); this.OnContextCreated(); //this.Format.LoadServiceModel = LoadModel; //this.Format.UseJson(); //this.Format.UseAtom(); }