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

RegisterWellKnownServiceType() private méthode

private RegisterWellKnownServiceType ( Type type, String objectUri, WellKnownObjectMode mode ) : void
type System.Type
objectUri String
mode WellKnownObjectMode
Résultat void
        public static void RegisterWellKnownServiceType(
            Type type, String objectUri, WellKnownObjectMode mode)
        {
            WellKnownServiceTypeEntry wke = 
                new WellKnownServiceTypeEntry(type, objectUri, mode);        
            RemotingConfiguration.RegisterWellKnownServiceType(wke); 
        } // RegisterWellKnownServiceType

Same methods

RemotingConfiguration::RegisterWellKnownServiceType ( WellKnownServiceTypeEntry 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::RegisterWellKnownServiceType