Esempio n. 1
0
        internal static ServerIdentity CreateWellKnownServerIdentity(Type objectType, string objectUri, WellKnownObjectMode mode)
        {
            ServerIdentity identity;

            if (mode == WellKnownObjectMode.SingleCall)
            {
                identity = new  SingleCallIdentity(objectUri, Context.DefaultContext, objectType);
            }
            else
            {
                identity = new  SingletonIdentity(objectUri, Context.DefaultContext, objectType);
            }

            RegisterServerIdentity(identity);
            return(identity);
        }
Esempio n. 2
0
		internal static ServerIdentity CreateWellKnownServerIdentity(Type objectType, string objectUri, WellKnownObjectMode mode)
		{
			ServerIdentity identity;

			if (mode == WellKnownObjectMode.SingleCall)
				identity = new  SingleCallIdentity(objectUri, Context.DefaultContext, objectType);
			else
				identity = new  SingletonIdentity(objectUri, Context.DefaultContext, objectType);

			RegisterServerIdentity (identity);
			return identity;
		}