Akka.Interfaced.ProtobufSerializer.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(ActorPath), false).SetSurrogate(typeof(SurrogateForActorPath));
            typeModel.Add(typeof(Address), false).SetSurrogate(typeof(SurrogateForAddress));
            typeModel.Add(typeof(IActorRef), false).SetSurrogate(typeof(SurrogateForIActorRef));
            typeModel.Add(typeof(INotificationChannel), false).SetSurrogate(typeof(SurrogateForINotificationChannel));
        }
    }

Usage Example

        public static TypeModel CreateTypeModel()
        {
            RuntimeTypeModel typeModel = TypeModel.Create();

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