Git Product home page Git Product logo

azist / azos Goto Github PK

View Code? Open in Web Editor NEW
212.0 212.0 29.0 32.38 MB

A to Z Sky Operating System / Microservice Chassis Framework

License: MIT License

Batchfile 0.15% C# 99.02% Shell 0.05% HTML 0.56% JavaScript 0.03% CSS 0.18% Perl 0.01% TSQL 0.01%
actor-model bigmemory chassis cloud cluster csharp distributed dotnet full-stack linux microservices mongodb mvc netcore netstandard serialization

azos's People

Contributors

davidbrun avatar itadapter avatar johnpkosh avatar sergey-msu avatar zhabis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azos's Issues

Q: Pile: TryGet()

I'm missing a bool TryGet(ptr, out object).
Is there a reason why there is only a Get(ptr) which throws an (slow) exception in case the Ptr is invalid?

Config serialization Bug? cfg.ToJSONString() Throws error

[System.InvalidCastException] Unable to cast object of type 'System.String' to type 'System.Collections.Generic.List`1[Azos.Serialization.JSON.JSONDataMap]'.

the following xml parsed:

<?xml version="1.0" encoding="utf-16"?>
<app a="1" b="2" c="1/1/2018" d=" string with spaces" e="&#xD;&#xA;verbatim&#xD;&#xA;string&#xD;&#xA;spanning lines">
  <log>
    <sink name="name1">
    </sink>
    <sink name="name2">
    </sink>
  </log>
<a  />  <------------------------------- addition of this node causes the bug -->
</app>
``

how to build on Linux?

I get errors from missing files. After examining your code looks like you build tools first then use those later in msbuild pipeline via cmd inclusions. I also noticed the "Under construction" sorta manifest in bash files -

#!/usr/bin/env bash
echo "THIS IS UNDER CONSTRUCTION";
exit 1;

what is the eta on that?

DeletFilesJob needs to alloc using MakeDirectedComponent()

: [System.MissingMethodException] Constructor on type 'Azos.IO.FileSystem.Local.LocalFileSystem' not found.'
This leaks:

event
    {
      name='Clean Log Files'
      type='Azos.IO.FileSystem.DeleteFilesJob, Azos'
      interval="04:30:00" //every 4 and a half hours

      recurse=false //analyzing just the specified directory
      delete-empty-dirs=false //keep all dirs as-is
      name-include-pattern="*.csv.log" //delete all files matching pattern

      last-modify-ago-hrs=120 // make sure that the file has not been touched for more than 120 hrs
      log-stats=true // emit instrumentation from this activity

      file-system 
      { 
        //because we have not specified the 'type' attribute of the file-system
        //it would default to local file system (which uses System.IO.FileStream etc.)
        //we could have injected a different file-system, e.g. Amazon S3, then the job
        //would have removed ols files remotely
        root-path=$(/paths/$log-path) //process files in this dir (see config above)
      }
    }

How to access attribute of the initial path level of reference?

app
{
name="iformsapp"

log-path=$(~ERX_HOME)$(@$name) // common path for all logging output
log-file-name="{0:yyyyMMdd}-$(./$name).csv.log"

log
{
sink //catch-all general logger
{
name=General
type="Azos.Log.Sinks.CSVFileSink, Azos"
path=$(/$log-path)
min-level=Info
file-name=$(/$log-file-name)
}

Glue: DIV0 error at Glue\Implementation\CallsWithTasks.cs:line 37

[Error] [System.AggregateException] One or more errors occurred. (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.) (Attempted to divide by zero.)
   at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`2 body)
   at Azos.Tests.Unit.Glue.TestLogic.TASK_TestContractB_4_Parallel(String CONF_SRC, Boolean threadSafe) in C:\Zdev\ghub\azos\src\testing\Azos.Tests.Unit\Glue\TestLogic.cs:line 517
   at Azos.Tests.Unit.Glue.MpxTests.Mpx_TASK_B_4_Parallel_ThreadSafeServer() in C:\Zdev\ghub\azos\src\testing\Azos.Tests.Unit\Glue\MpxTests.cs:line 198

[Error[1]] [System.DivideByZeroException] Attempted to divide by zero.
   at Azos.Glue.Implementation.CallsWithTasks.Put(CallSlot call) in C:\Zdev\ghub\azos\src\Azos\Glue\Implementation\CallsWithTasks.cs:line 37
   at Azos.Glue.Implementation.GlueDaemon.SubscribeCallSlotWithTaskReactor(CallSlot call) in C:\Zdev\ghub\azos\src\Azos\Glue\Implementation\GlueDaemon.cs:line 318
   at Azos.Glue.CallSlot.get_AsTask() in C:\Zdev\ghub\azos\src\Azos\Glue\CallSlot.cs:line 246
   at Azos.Tests.Unit.Glue.TestLogic.<>c__DisplayClass19_0.<TASK_TestContractB_4_Parallel>b__0(Int32 i, ParallelLoopState loop) in C:\Zdev\ghub\azos\src\testing\Azos.Tests.Unit\Glue\TestLogic.cs:line 526
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica.Execute()

Azos.nuspec Problems

/elm/build/Azos.nuspec

  • Add Azos.dll, Azos.Tools.dll into each target fx: net472, netcoreapp2.0, etc..
  • Also add Platform-specific runtimes - they should be a part of this package

Question about app containers nestings

I have question about nesting of app containers in v5 (per your email i ask here)
how is it that services use App. global accessor when context is nested?
I don't get what first services (the ones that booted under first) shall see upon 2nd container launch - 2nd app scope?
Is this a glitch?
I do buy this static class pattern for "ambient context" but perplexed about nesting.

Where is string.IsOneOf(...) method?

Need to have checing against known content types:

    public bool IsImage => ContentType.IsOneOf(ContentTypes.Images);
    public bool IsString => ContentType.IsOneOf(ContentTypes.Textual);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.