Exemplo n.º 1
0
 public object GetInstance(InstanceContext instanceContext, Message message)
 {
     return(PooledInstanceLocator.GetInstanceFromPool(instanceContext.Host.Description.ServiceType));
 }
Exemplo n.º 2
0
 public void ReleaseInstance(InstanceContext instanceContext, object instance)
 {
     PooledInstanceLocator.ReleaseInstanceToPool(instance as IPooledObject);
 }