예제 #1
0
 public void ReleaseInstance(System.ServiceModel.InstanceContext instanceContext, object instance)
 {
     PooledInstanceLocator.ReleaseInstanceToPool(instance as IPooledObject);
 }
예제 #2
0
 public object GetInstance(System.ServiceModel.InstanceContext instanceContext, System.ServiceModel.Channels.Message message)
 {
     return(PooledInstanceLocator.GetInstanceFromPool(instanceContext.Host.Description.ServiceType));
 }