System.Runtime.Remoting.RemotingConfiguration.RegisterWellKnownClientType C# (CSharp) Méthode

RegisterWellKnownClientType() private méthode

private RegisterWellKnownClientType ( Type type, String objectUrl ) : void
type System.Type
objectUrl String
Résultat void
        public static void RegisterWellKnownClientType(Type type, String objectUrl)
        {
            WellKnownClientTypeEntry wke = new WellKnownClientTypeEntry(type, objectUrl);
            RemotingConfiguration.RegisterWellKnownClientType(wke);
        } // RegisterWellKnownClientType

Same methods

RemotingConfiguration::RegisterWellKnownClientType ( WellKnownClientTypeEntry entry ) : void

Usage Example

Exemple #1
0
 internal static void RegisterTypes(ArrayList types)
 {
     foreach (object obj in types)
     {
         TypeEntry typeEntry = (TypeEntry)obj;
         if (typeEntry is ActivatedClientTypeEntry)
         {
             RemotingConfiguration.RegisterActivatedClientType((ActivatedClientTypeEntry)typeEntry);
         }
         else if (typeEntry is ActivatedServiceTypeEntry)
         {
             RemotingConfiguration.RegisterActivatedServiceType((ActivatedServiceTypeEntry)typeEntry);
         }
         else if (typeEntry is WellKnownClientTypeEntry)
         {
             RemotingConfiguration.RegisterWellKnownClientType((WellKnownClientTypeEntry)typeEntry);
         }
         else if (typeEntry is WellKnownServiceTypeEntry)
         {
             RemotingConfiguration.RegisterWellKnownServiceType((WellKnownServiceTypeEntry)typeEntry);
         }
     }
 }
All Usage Examples Of System.Runtime.Remoting.RemotingConfiguration::RegisterWellKnownClientType