public void CreateHost(Type serviceType,Uri[] baseAddresses)
 {
     CodeAccessSecurityHelper.PermissionSetFromStandardSet(StandardPermissionSet.FullTrust).Assert();
      m_Host = new ServiceHost(serviceType,baseAddresses);
      PermissionSet.RevertAssert();
      m_Host.DemandHostPermissions();
 }