public MexInstanceContextProvider (ServiceHostBase service_host)
		{
			foreach (IServiceBehavior beh in service_host.Description.Behaviors) {
				ServiceMetadataBehavior mex_beh = beh as ServiceMetadataBehavior;
				if (mex_beh == null)
					continue;

				MetadataExchange mex_instance = new MetadataExchange (mex_beh);
				ctx = new InstanceContext (mex_instance);
				break;
			}
			//if (ctx == null)
		}