This file contains hidden or 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
| string sendingIp = "192.168.0.1"; | |
| int sendingPort = 5000; | |
| Uri uri = new Uri("http://google.com"); | |
| HttpWebRequest wr = (HttpWebRequest)WebRequest.Create(uri); | |
| ServicePoint sp = ServicePointManager.FindServicePoint(uri); | |
| sp.BindIPEndPointDelegate = | |
| (servicePoint,remoteEp,retryCount) => | |
| { | |
| return new IPEndPoint(IPAddress.Parse(sendingIp),sendingPort); | |
| }; |
This file contains hidden or 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
| steps: | |
| - task: PublishBuildArtifacts@1 | |
| displayName: Publish Artifact: DynamicPowerShellArguments | |
| inputs: | |
| PathtoPublish: test.ps1 | |
| ArtifactName: DynamicPowerShellArguments | |
| publishLocation: Container |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <configuration> | |
| <startup> | |
| <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> | |
| </startup> | |
| <connectionStrings> | |
| <add name="ConnectionStringUnderTest" connectionString="Data Source=localhost;Initial Catalog=MyDatabaseCatalogToReplace;Integrated Security=True" /> | |
| </connectionStrings> | |
| <appSettings> | |
| <add key="CommandTimeOut" value="90"/> |
This file contains hidden or 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
| Username user | |
| Domain domain | |
| # provide actual value if autodetection fails | |
| # Workstation pc-name | |
| Proxy my_proxy_server.com:80 | |
| NoProxy 127.0.0.*, 192.168.* | |
| Listen 127.0.0.1:54321 |
This file contains hidden or 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
| DROP TABLE IF EXISTS dbo.Product | |
| DROP TRIGGER IF EXISTS trProductInsert | |
| DROP PROCEDURE IF EXISTS [dbo].[InsertData] |
This file contains hidden or 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
| IF EXISTS(SELECT 1 FROM sys.objects AS O WHERE O.name = 'Product' AND O.[type] = 'U') | |
| BEGIN | |
| DROP TABLE [SomeTable] | |
| END | |
| IF OBJECT_ID('dbo.Product', 'U') IS NOT NULL | |
| BEGIN | |
| DROP TABLE dbo.Product; | |
| END |
This file contains hidden or 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
| namespace Web.Controllers | |
| { | |
| public class PSExecution | |
| { | |
| public PSCommand PSCommand{get;set;} | |
| public string Output{get; private set;} | |
| public void SetOutput(string output){ | |
| this.Output = output; | |
| } |
This file contains hidden or 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 async Task<IHttpActionResult> MethodB() | |
| { | |
| var customer = new Customer(); | |
| var getAllWidgetsTask = _widgetService.GetAllWidgets(); | |
| var getAllFoosTask = _fooService.GetAllFos(); | |
| Task.WaitAll(new List[] {getAllWidgetsTask, getAllFoosTask}); | |
| customer.Widgets = getAllWidgetsTask.Result; |
This file contains hidden or 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
| if (_angular_core.ɵglobal['Node']) { | |
| nodeContains = _angular_core.ɵglobal['Node'].prototype.contains || function (node) { | |
| return !!(this.compareDocumentPosition(node) & 16); | |
| }; | |
| } |
This file contains hidden or 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
| Microsoft.AspNetCore.NodeServices.HostingModels.NodeInvocationException: Prerendering failed because of error: TypeError: Cannot read property 'Node' of undefined | |
| at module.exports.d.(anonymous function) (netcore2AppPath\ClientApp\dist\vendor.js:26869:26) | |
| at module.exports.Object.setPrototypeOf.__proto__ (netcore2AppPath\ClientApp\dist\vendor.js:25890:10) | |
| at Object.module.exports.d.(anonymous function) (netcore2AppPath\ClientApp\dist\vendor.js:25893:2) | |
| at __webpack_require__ (netcore2AppPath\ClientApp\dist\vendor.js:21:30) | |
| at Object.define.function.define.amd.global.ng (netcore2AppPath\ClientApp\dist\main-server.js:8019:42) | |
| at __webpack_require__ (netcore2AppPath\ClientApp\dist\main-server.js:20:30) | |
| at Object.setPrototypeOf.__proto__ (netcore2AppPath\ClientApp\dist\main-server.js:8031:51) | |
| at Object.define.function.define.amd.global.ng (netcore2AppPath\ClientApp\dist\main-server.js:8034:2) |