コード例 #1
0
 public object GetInstance(InstanceContext instanceContext, Message message)
 {
     return(PooledInstanceLocator.GetInstanceFromPool(instanceContext.Host.Description.ServiceType));
 }
コード例 #2
0
 public void ReleaseInstance(InstanceContext instanceContext, object instance)
 {
     PooledInstanceLocator.ReleaseInstanceToPool(instance as IPooledObject);
 }