Akka.Interfaced.SlimSocket.Server.AkkaSurrogate.Register C# (CSharp) Метод

Register() публичный статический Метод

public static Register ( ProtoBuf.Meta.RuntimeTypeModel typeModel ) : void
typeModel ProtoBuf.Meta.RuntimeTypeModel
Результат void
        public static void Register(RuntimeTypeModel typeModel)
        {
            typeModel.Add(typeof(IRequestTarget), false).SetSurrogate(typeof(SurrogateForIRequestTarget));
            typeModel.Add(typeof(INotificationChannel), false).SetSurrogate(typeof(SurrogateForINotificationChannel));
        }
    }

Usage Example

Пример #1
0
        public static TypeModel CreateTypeModel()
        {
            RuntimeTypeModel typeModel = TypeModel.Create();

            AkkaSurrogate.Register(typeModel);
            AutoSurrogate.Register(typeModel);
            return(typeModel);
        }
AkkaSurrogate