This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Http; | |
using SimpleInjector; | |
using SimpleInjector.Integration.WebApi; | |
using Interfaces; | |
using Common; | |
public static class SimpleInjectorWebApiInitializer | |
{ | |
// Make container available to the rest of the application | |
// Use Container to instantiate the objects you want |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public interface IService | |
{ | |
void Serve(); | |
} | |
public class Service : IService | |
{ | |
public void Serve() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public interface IService | |
{ | |
void Serve(); | |
} | |
public class Service : IService | |
{ | |
public void Serve() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AlternateService :IService | |
{ | |
public void Serve() | |
{ | |
Console.WriteLine("Service Called"); | |
//To Do: Some Stuff | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AlternateService | |
{ | |
public void Serve() | |
{ | |
Console.WriteLine("Service Called"); | |
//To Do: Some Stuff | |
} | |
} | |
class TestClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class Service | |
{ | |
public void Serve() | |
{ | |
Console.WriteLine("Service Called"); | |
//To Do: Some Stuff | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /resource | |
Accept: text/html, application/xml, application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /old |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT /resource/E809EF63-86D7-4B8B-973E-69C1B509F692 |