public static CustomActivity StartSyncron(string taskname, CustomActivity parentActivity, CustomActivity.OperationType operationType, string target) { CustomActivity dependencyActivity = new CustomActivity(taskname, parentActivity, operationType, target); s_DictionaryStarts.TryAdd(taskname, s_Time.Elapsed); return(dependencyActivity); }
public static async ValueTask <CustomActivity> StartSyncronAsync(string taskname, CustomActivity parentActivity, CustomActivity.OperationType operationType, string target) { CustomActivity dependencyActivity = new CustomActivity(taskname, parentActivity, operationType, target); await s_DictionaryStarts.TryAddAsync(taskname, s_Time.Elapsed); return(dependencyActivity); }