You can overcome this scenario by replacing:
using System.Data.Objects;
With:
using System.Data.Entity.Core.Objects;
using System.Data.Objects;
using System.Data.Entity.Core.Objects;
PM> Install-Package EnyimMemcached
MemcachedClientConfiguration config = new MemcachedClientConfiguration(); IPEndPoint remoteEP = new IPEndPoint(IPAddress.Parse("10.10.4.98"), 11211); config.Servers.Add(remoteEP); config.Protocol = MemcachedProtocol.Text; //using - not recommended here, check out documentation using (var mc = new MemcachedClient(config)) { //get var zz = mc.Get("test_" + x); //set mc.Store(StoreMode.Set, "Test", "Hello World"); }
using Droog.Beanstalk.Client;
using (var client = new BeanstalkClient("10.10.4.99", 11300)) { var put = client.PutString("foo"); var reserve = client.ReserveString(); client.Delete(reserve.JobId); }
SN, OID.2.5.4.4
G, OID.2.5.4.42
CN, OID.2.5.4.3
O, OID.2.5.4.10
T, OID.2.5.4.12
S, OID.2.5.4.9
OU, OID.2.5.4.11
L, OID.2.5.4.7
public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapMvcAttributeRoutes(); } } //using public class ValuesController : ApiController { // GET api/values public IEnumerableGet() { return new string[] { "value1", "value2" }; } // GET api/values/5 public string Get(int id) { return "value"; } [Route("customers/orders")] [HttpGet] public string FindOrdersByCustomer() { return "Supervalue"; } // POST api/values public void Post([FromBody]string value) { } // PUT api/values/5 public void Put(int id, [FromBody]string value) { } // DELETE api/values/5 public void Delete(int id) { } }
http://www.codeproject.com/Articles/774807/Attribute-Routing-in-ASP-NET-MVC-WebAPI
public class MoviesController : ApiController { public IEnumerableGet() { return new List { new Movie {Id=1, Title="Star Wars", Director="Lucas"}, new Movie {Id=2, Title="King Kong", Director="Jackson"}, new Movie {Id=3, Title="Memento", Director="Nolan"} }; } public string Get(int id) { return "value"; } public void Post([FromBody]string value) { } public void Put(int id, [FromBody]string value) { } public void Delete(int id) { } }
@{ ViewBag.Title = "Home Page"; } @section scripts { }
Title Director {{movie.Title}} {{movie.Director}}
[ServiceBehavior(InstanceContextMode=InstanceContextMode.PerCall,
ConcurrencyMode=ConcurrencyMode.Single)]