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 static void ProcessText([BlobTrigger(@"input-dir/{name}.txt")] TextReader content, | |
string name, | |
[Blob(@"output-dir/{name}")] TextWriter contentOutput) | |
{ | |
Console.WriteLine(String.Format("Reading Content from : {0}", name)); | |
var temp = String.Format("Contents : {0}", content.ReadToEnd()); | |
contentOutput.WriteLine(temp); | |
} | |
public static void CopyBlobToBlob([BlobTrigger(@"input-dir/{name}.jpeg")] Stream content, |
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
var settings = new JsonSerializerSettings | |
{ | |
NullValueHandling = NullValueHandling.Ignore, | |
Converters = new List<JsonConverter> | |
{ | |
new IsoDateTimeConverter() | |
{ | |
DateTimeFormat= "yyyy-MM-dd HH:mm:ss" | |
} |
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
<system.webServer> | |
<security> | |
<ipSecurity allowUnlisted="false"> | |
<add ipAddress="123.123.123.123" allowed="true" /> | |
</ipSecurity> | |
<dynamicIpSecurity> | |
<denyByRequestRate enabled="true" maxRequests="15" requestIntervalInMilliseconds="5000"/> | |
</dynamicIpSecurity> | |
</security> | |
</system.webServer> |
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
//code extracted | |
<ipSecurity enableReverseDns="true" allowUnlisted="false"> | |
<add ipAddress="123.123.123.123" allowed="true" /> | |
<add domainName="learnwithshahriar.wordpress.com" allowed="true" /> | |
</ipSecurity> |
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
//code extracted | |
<ipSecurity allowUnlisted="false" denyAction="Unauthorized"> |
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
//code extracted | |
<ipSecurity allowUnlisted="true"> | |
<add ipAddress="123.200.0.0" subnetMask="255.255.0.0" allowed="true" /> | |
</ipSecurity> |
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
<system.web> | |
<httpRuntime enableVersionHeader="false"/> | |
</system.web> |
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
<system.webServer> | |
<httpProtocol> | |
<customHeaders> | |
<remove name="X-Powered-By"/> | |
</customHeaders> | |
</httpProtocol> | |
</system.webServer> |
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
<system.webServer> | |
<security> | |
<requestFiltering removeServerHeader="true"/> | |
</security> | |
</system.webServer> |
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
//Number keyboard show | |
<input type="number" min="0" inputmode="numeric" pattern="[0-9]*" title="Non-negative integral number"> | |
or | |
<input type="tel" class="form-control" name="phone" id="phoneInput" placeholder="(000) 000-0000" required/> | |
//URL specifc keyboard | |
<input type="url" /><br /> | |
//Email specifc keyboard | |
<input type="email" /><br /> |