/// <exception cref="System.IO.IOException"/> internal IPortable ReadAndInitialize(IBufferObjectDataInput @in, int factoryId, int classId) { IPortable p = Read(@in, factoryId, classId); IManagedContext managedContext = context.GetManagedContext(); return(managedContext != null ? (IPortable)managedContext.Initialize(p) : p); }
public object Initialize(object obj) { if (obj is IHazelcastInstanceAware) { ((IHazelcastInstanceAware)obj).SetHazelcastInstance(instance); } if (hasExternalContext) { obj = externalContext.Initialize(obj); } return(obj); }
public object Initialize(object obj) { var aware = obj as IHazelcastInstanceAware; if (aware != null) { aware.SetHazelcastInstance(_instance); } if (_hasExternalContext) { obj = _externalContext.Initialize(obj); } return(obj); }