-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Update examples (#158) * IIS debug * PathBase logic * 1.0.4.5-preview-01 * Fix project and readme * Fix issues * fix picture alignment * Add IIS publish examples * 1.0.4.5
- Loading branch information
Showing
42 changed files
with
474 additions
and
139 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dotnet run --framework netcoreapp2.1 |
31 changes: 31 additions & 0 deletions
31
examples/WireMock.Net.WebApplication/Properties/PublishProfiles/IIS Localhost 1.pubxml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process | ||
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121. | ||
--> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<WebPublishMethod>MSDeploy</WebPublishMethod> | ||
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration> | ||
<LastUsedPlatform>Any CPU</LastUsedPlatform> | ||
<SiteUrlToLaunchAfterPublish /> | ||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> | ||
<ExcludeApp_Data>False</ExcludeApp_Data> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
<RuntimeIdentifier>win10-x64</RuntimeIdentifier> | ||
<ProjectGuid>049539c1-7a66-4559-ad7a-b1c73b97cbb0</ProjectGuid> | ||
<SelfContained>true</SelfContained> | ||
<_IsPortable>false</_IsPortable> | ||
<MSDeployServiceURL>localhost</MSDeployServiceURL> | ||
<DeployIisAppPath>Default Web Site/wiremock1</DeployIisAppPath> | ||
<RemoteSitePhysicalPath /> | ||
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer> | ||
<MSDeployPublishMethod>InProc</MSDeployPublishMethod> | ||
<EnableMSDeployBackup>False</EnableMSDeployBackup> | ||
<UserName /> | ||
<_SavePWD>False</_SavePWD> | ||
<PublishDatabaseSettings> | ||
<Objects xmlns="" /> | ||
</PublishDatabaseSettings> | ||
</PropertyGroup> | ||
</Project> |
31 changes: 31 additions & 0 deletions
31
examples/WireMock.Net.WebApplication/Properties/PublishProfiles/IIS Localhost 2.pubxml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process | ||
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121. | ||
--> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<WebPublishMethod>MSDeploy</WebPublishMethod> | ||
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration> | ||
<LastUsedPlatform>Any CPU</LastUsedPlatform> | ||
<SiteUrlToLaunchAfterPublish /> | ||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> | ||
<ExcludeApp_Data>False</ExcludeApp_Data> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
<RuntimeIdentifier>win10-x64</RuntimeIdentifier> | ||
<ProjectGuid>049539c1-7a66-4559-ad7a-b1c73b97cbb1</ProjectGuid> | ||
<SelfContained>true</SelfContained> | ||
<_IsPortable>false</_IsPortable> | ||
<MSDeployServiceURL>localhost</MSDeployServiceURL> | ||
<DeployIisAppPath>Default Web Site/wiremock2</DeployIisAppPath> | ||
<RemoteSitePhysicalPath /> | ||
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer> | ||
<MSDeployPublishMethod>InProc</MSDeployPublishMethod> | ||
<EnableMSDeployBackup>False</EnableMSDeployBackup> | ||
<UserName /> | ||
<_SavePWD>False</_SavePWD> | ||
<PublishDatabaseSettings> | ||
<Objects xmlns="" /> | ||
</PublishDatabaseSettings> | ||
</PropertyGroup> | ||
</Project> |
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
11 changes: 5 additions & 6 deletions
11
...cation/WireMock.Net.WebApplication.csproj → ...reMock.Net.WebApplication.NETCore2.csproj
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Running in IIS | ||
|
||
Follow these links / steps: | ||
* https://weblog.west-wind.com/posts/2016/Jun/06/Publishing-and-Running-ASPNET-Core-Applications-with-IIS | ||
* https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/development-time-iis-support?view=aspnetcore-2.1 | ||
* Create a `web.config` file | ||
|
||
## IIS Sites | ||
![IIS Multiple](resources/iis-wiremock1and2.png) | ||
|
||
## App Pool settings | ||
![IIS Multiple](resources/iis-apppool.png) | ||
|
||
## Publish Profiles | ||
Two example publish profiles are created: | ||
* [IIS Localhost 1](./Properties/PublishProfiles/IIS%20Localhost%201.pubxml) | ||
* [IIS Localhost 2](./Properties/PublishProfiles/IIS%20Localhost%202.pubxml) | ||
|
||
## Debugging | ||
Select the debug "IIS" if you want to debug in IIS. | ||
![IIS Debug](resources/iis-debug.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<!-- | ||
Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380 | ||
--> | ||
<system.webServer> | ||
<handlers> | ||
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /> | ||
</handlers> | ||
<aspNetCore processPath="bin\IISSupport\VSIISExeLauncher.exe" arguments="-argFile IISExeLauncherArgs.txt" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" /> | ||
</system.webServer> | ||
</configuration> |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using System; | ||
using WireMock.Validation; | ||
|
||
namespace WireMock.Models | ||
{ | ||
/// <summary> | ||
/// UrlDetails | ||
/// </summary> | ||
public class UrlDetails | ||
{ | ||
/// <summary> | ||
/// Gets the url (relative). | ||
/// </summary> | ||
public Uri Url { get; } | ||
|
||
/// <summary> | ||
/// Gets the AbsoluteUrl. | ||
/// </summary> | ||
public Uri AbsoluteUrl { get; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="UrlDetails"/> class. | ||
/// </summary> | ||
/// <param name="url">The URL.</param> | ||
public UrlDetails(string url) : this(new Uri(url)) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="UrlDetails"/> class. | ||
/// </summary> | ||
/// <param name="url">The URL.</param> | ||
public UrlDetails(Uri url) : this(url, url) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="UrlDetails"/> class. | ||
/// </summary> | ||
/// <param name="absoluteUrl">The absolute URL.</param> | ||
/// <param name="url">The URL (relative).</param> | ||
public UrlDetails(Uri absoluteUrl, Uri url) | ||
{ | ||
Check.NotNull(absoluteUrl, nameof(absoluteUrl)); | ||
Check.NotNull(url, nameof(url)); | ||
|
||
AbsoluteUrl = absoluteUrl; | ||
Url = url; | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.