Interface IUriBuilder
Used for building Uri location.
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Uri
Assembly:MyTested.AspNetCore.Mvc.Abstractions.dll
Syntax
public interface IUriBuilder
Methods
| Improve this Doc View SourceWithAbsolutePath(String)
Sets the System.Uri.AbsolutePath of the built Uri.
Declaration
IAndUriBuilder WithAbsolutePath(string absolutePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | absolutePath | Absolute path part of Uri. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder. |
WithFragment(String)
Sets the System.Uri.Fragment of the built Uri.
Declaration
IAndUriBuilder WithFragment(string fragment)
Parameters
Type | Name | Description |
---|---|---|
System.String | fragment | Document fragment part of Uri. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder. |
WithHost(String)
Sets the System.Uri.Host of the built Uri.
Declaration
IAndUriBuilder WithHost(string host)
Parameters
Type | Name | Description |
---|---|---|
System.String | host | Host part of Uri. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder. |
WithPort(Int32)
Sets the System.Uri.Port of the built Uri.
Declaration
IAndUriBuilder WithPort(int port)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | Port part of Uri. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder. |
WithQuery(String)
Sets the System.Uri.Query of the built Uri.
Declaration
IAndUriBuilder WithQuery(string query)
Parameters
Type | Name | Description |
---|---|---|
System.String | query | Query part of Uri. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder. |
WithScheme(String)
Sets the System.Uri.Scheme of the built Uri.
Declaration
IAndUriBuilder WithScheme(string scheme)
Parameters
Type | Name | Description |
---|---|---|
System.String | scheme | Scheme part of Uri. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Uri.IAndUriBuilder. |