예제 #1
0
 public virtual Lock ParseThreadLock(TInstance instance)
 {
     return(new Lock(string.Intern(
                         $"[({Thread.CurrentThread.ManagedThreadId}){LockName.Flow(StringFlow.UrlEncode)}<{typeof(TInstance).FullName}>]:" +
                         $"{FlagLambdas.Select(x => x(instance).ToString().Flow(StringFlow.UrlEncode)).Join(" ")}")));
 }
예제 #2
0
 public virtual Lock Parse(TInstance instance)
 {
     return(new Lock(string.Intern(
                         $"[{LockName.Flow(StringFlow.UrlEncode)}<{typeof(TInstance).FullName}>]:" +
                         $"{FlagLambdas.Select(x => x(instance).ToString().Flow(StringFlow.UrlEncode)).Join(" ")}")));
 }