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
#Requires -Version 6.1.3 | |
#Requires -RunAsAdministrator | |
param( | |
[Parameter(mandatory=$true)] | |
$Name, | |
[Parameter(mandatory=$true)] | |
$DisplayName, | |
[Parameter(mandatory=$true)] | |
$Description, |
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
string s = "Hello"; | |
s[2] = 'A'; | |
Console.WriteLine(s[2]); |
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 void Test() | |
{ | |
var actions = new List<Action>(); | |
for (int index = 0; index < 100; index++) | |
{ | |
Action func = () => {{ | |
Console.WriteLine($"{index}"); | |
}}; | |
actions.Add(func); | |
} |
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
stages: | |
- build | |
- tests | |
- publish | |
- deploy | |
# build | |
build auto: |
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
using System; | |
using System.Reflection; | |
using Microsoft.Extensions.Logging; | |
namespace SIISLtd.UCATI.AOP | |
{ | |
public class LoggingDecorator<T> : DispatchProxy | |
{ | |
private T _decorated; |
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 void DoWork() | |
{ | |
//Your code goes here | |
Task.Factory.StartNew(() => | |
{ | |
var coat = human.Coar("2"); | |
if (!coat.SetOwner(human)) return; |