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
using Microsoft.Azure.KeyVault; | |
using Microsoft.Azure.Services.AppAuthentication; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Hosting; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Configuration.AzureKeyVault; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.DependencyInjection.Extensions; | |
using System; | |
using System.Linq; |
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
private static readonly ConcurrentDictionary<string, Type> _typeCache = new ConcurrentDictionary<string, Type>(); | |
public static Type GetTypeByFullName(string fullName) | |
{ | |
if (_typeCache.TryGetValue(fullName, out Type type)) | |
return type; | |
var paramTypes = GetAllTypesOf(typeof(Param)); | |
if (paramTypes.Any()) | |
{ | |
var match = paramTypes.FirstOrDefault(x => x.FullName == fullName); |
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
C:\Temp>test.cmd "i'm the first" followed and futher "things here" | |
First arg: "i'm the first" | |
2nd arg: followed | |
all args: "i'm the first" followed and futher "things here" |