Akka.Interfaced.ProtobufSerializer.AutoSurrogate.Register C# (CSharp) Метод

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

public static Register ( ProtoBuf.Meta.RuntimeTypeModel typeModel ) : void
typeModel ProtoBuf.Meta.RuntimeTypeModel
Результат void
        public static void Register(RuntimeTypeModel typeModel)
        {
            foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
            {
                Register(typeModel, assembly);
            }
        }

Same methods

AutoSurrogate::Register ( ProtoBuf.Meta.RuntimeTypeModel typeModel, Assembly assembly ) : void

Usage Example

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

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