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