Exemplo n.º 1
0
        public CollectionCountAsyncMethod()
        {
            Name = "CountAsync";

            Parameters = new Parameter[]
            {
            };

            ReturnType = new Type(Identifier.Task, new[] { new Type(NamesService.GetPrimitiveTypeName("Int64")), });
        }
Exemplo n.º 2
0
        public AddAsyncMethod(OdcmClass odcmClass)
        {
            Name = "Add" + odcmClass.Name + "Async";

            Parameters = new[]
            {
                new Parameter(new Type(NamesService.GetConcreteInterfaceName(odcmClass)), "item"),
                new Parameter(new Type(NamesService.GetPrimitiveTypeName("Boolean")), "deferSaveChanges", "false")
            };

            ReturnType = new Type(Identifier.Task);
        }
Exemplo n.º 3
0
        public AddAsyncMediaMethod(OdcmClass odcmClass)
        {
            Name = "Add" + odcmClass.Name + "Async";

            Parameters = new[]
            {
                new Parameter(new Type(NamesService.GetConcreteInterfaceName(odcmClass)), "item"),
                new Parameter(new Type(NamesService.GetPrimitiveTypeName("IStream")), "stream"),
                new Parameter(new Type(NamesService.GetPrimitiveTypeName("String")), "contentType"),
                new Parameter(new Type(NamesService.GetPrimitiveTypeName("Boolean")), "deferSaveChanges", "false"),
                new Parameter(new Type(NamesService.GetPrimitiveTypeName("Boolean")), "closeStream", "false")
            };

            ReturnType = new Type(Identifier.Task);

            Visibility = ConfigurationService.Settings.MediaEntityAddAsyncVisibility;
        }