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
Tüm Containerları Durdur | |
- docker stop $(docker ps -aq) | |
Tüm Containerları Sil | |
- docker rm $(docker ps -aq) | |
Tüm Imageları Sil | |
- docker rmi $(docker images -q) |
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
https://www.docker.com/products/docker-desktop | |
Download for Windows | |
https://store.docker.com/editions/community/docker-ce-desktop-windows | |
SignUp | |
Get Docker |
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
mkdir docker-sample | |
cd docker-sample | |
dotnet new MVC -n DotnetCoreWebApi | |
cd DotnetCoreWebApi\ | |
dotnet restore | |
dotnet build | |
dotnet run |
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
docker run -d -p 6379:6379 redis | |
docker ps | |
localhost:6379 | |
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
<form method="post" asp-action="Upload" asp-controller="Home" enctype="multipart/form-data"> | |
<input type="file" name="files" multiple/> | |
<input type="submit" value="Upload" /> | |
</form> | |
public class HomeController : Controller | |
{ | |
private IHostingEnvironment _environment; |
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
public class JsonNetFormatter : MediaTypeFormatter | |
{ | |
public JsonNetFormatter() | |
{ | |
SupportedMediaTypes.Add(new System.Net.Http.Headers.MediaTypeHeaderValue("application/json")); | |
} | |
public override bool CanWriteType(Type type) | |
{ | |
// don't serialize JsonValue structure use default for that |
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
public class IoC | |
{ | |
private static IWindsorContainer _container; | |
private static readonly object SyncRoot = new object(); | |
public static void Initialize() | |
{ | |
if (_container == null) |