Exemplo n.º 1
0
 protected InterceptedFunctionBase(
     InterceptedMethod method,
     IComputedRegistry computedRegistry)
     : base(computedRegistry)
 {
     Method = method;
 }
Exemplo n.º 2
0
 public ComputedServiceFunction(
     InterceptedMethod method,
     Generator <LTag> lTagGenerator,
     IComputedRegistry computedRegistry,
     ILogger <ComputedServiceFunction <T> >?log = null)
     : base(method, computedRegistry)
 {
     _log          = log ??= NullLogger <ComputedServiceFunction <T> > .Instance;
     LTagGenerator = lTagGenerator;
 }
Exemplo n.º 3
0
 public ReplicaServiceFunction(
     InterceptedMethod method,
     Generator <LTag> lTagGenerator,
     IComputedRegistry computedRegistry,
     ILogger <ReplicaServiceFunction <T> >?log = null)
     : base(method, computedRegistry)
 {
     _log = log ??= NullLogger <ReplicaServiceFunction <T> > .Instance;
     _isLogDebugEnabled = _log.IsEnabled(LogLevel.Debug);
     LTagGenerator      = lTagGenerator;
     InvalidatedHandler = null;
 }
Exemplo n.º 4
0
 public ReplicaClientFunction(
     InterceptedMethod method,
     Generator <LTag> versionGenerator,
     IComputedRegistry computedRegistry,
     ILogger <ReplicaClientFunction <T> >?log = null)
     : base(method, computedRegistry)
 {
     Log = log ??= NullLogger <ReplicaClientFunction <T> > .Instance;
     IsLogDebugEnabled  = Log.IsEnabled(LogLevel.Debug);
     VersionGenerator   = versionGenerator;
     InvalidatedHandler = null;
 }
Exemplo n.º 5
0
 protected FunctionBase(IComputedRegistry computedRegistry)
 {
     ComputedRegistry   = computedRegistry;
     Locks              = computedRegistry.GetLocksFor(this);
     InvalidatedHandler = c => Unregister((IComputed <TIn, TOut>)c !);
 }